home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-08-27 | 17.6 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Aug 27 20:20:13 1996, modified Tue Aug 27 20:20:13 1996, creator 'CWIE', type ASCII, 17394 bytes "MercutioAPI.p" , at 0x4472 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 4d 65 72 63 75 74 | 69 6f 41 50 49 2e 70 00 |..Mercut|ioAPI.p.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 43 f2 00 | 00 01 9a ae 49 41 3d ae |.....C..|....IA=.|
|00000060| 49 41 3d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |IA=.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c4 84 00 00 |........|........|
|00000080| 55 4e 49 54 20 4d 65 72 | 63 75 74 69 6f 41 50 49 |UNIT Mer|cutioAPI|
|00000090| 3b 0d 0d 20 20 20 20 7b | 78 78 78 78 78 78 78 78 |;.. {|xxxxxxxx|
|000000a0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000000b0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000000c0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000000d0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000000e0| 78 78 78 7d 0d 20 20 20 | 20 7b 78 20 20 20 20 20 |xxx}. | {x |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 20 78 7d 0d 20 | 20 20 20 7b 78 20 20 20 | x}. | {x |
|00000140| 20 20 20 20 20 20 44 65 | 76 65 6c 6f 70 65 72 27 | De|veloper'|
|00000150| 73 20 50 72 6f 67 72 61 | 6d 6d 69 6e 67 20 49 6e |s Progra|mming In|
|00000160| 74 65 72 66 61 63 65 20 | 66 6f 72 20 74 68 65 20 |terface |for the |
|00000170| 4d 65 72 63 75 74 69 6f | 20 4d 44 45 46 20 20 20 |Mercutio| MDEF |
|00000180| 20 20 20 20 20 20 78 7d | 0d 20 20 20 20 7b 78 20 | x}|. {x |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 a9 31 39 39 32 | | .1992|
|000001a0| 2d 31 39 39 36 20 52 61 | 6d 6f 6e 20 4d 2e 20 46 |-1996 Ra|mon M. F|
|000001b0| 65 6c 63 69 61 6e 6f 2c | 20 41 6c 6c 20 52 69 67 |elciano,| All Rig|
|000001c0| 68 74 73 20 52 65 73 65 | 72 76 65 64 20 20 20 20 |hts Rese|rved |
|000001d0| 20 20 20 20 20 20 20 20 | 78 7d 0d 20 20 20 20 7b | |x}. {|
|000001e0| 78 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x | |
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000220| 20 20 20 20 20 20 20 20 | 20 20 78 7d 0d 20 20 20 | | x}. |
|00000230| 20 7b 78 09 09 73 6f 6d | 65 20 6f 72 69 67 69 6e | {x..som|e origin|
|00000240| 61 6c 20 69 6e 6c 69 6e | 65 20 61 73 73 65 6d 62 |al inlin|e assemb|
|00000250| 6c 79 20 63 6f 75 72 74 | 65 73 79 20 6f 66 20 4a |ly court|esy of J|
|00000260| 6f 68 6e 20 43 61 76 61 | 6c 6c 69 6e 6f 09 09 09 |ohn Cava|llino...|
|00000270| 09 09 09 09 78 7d 0d 20 | 20 20 20 7b 78 78 78 78 |....x}. | {xxxx|
|00000280| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00000290| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000002a0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000002b0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000002c0| 78 78 78 78 78 78 78 7d | 0d 0d 49 4e 54 45 52 46 |xxxxxxx}|..INTERF|
|000002d0| 41 43 45 0d 7b 24 41 4c | 49 47 4e 20 4d 41 43 36 |ACE.{$AL|IGN MAC6|
|000002e0| 38 4b 7d 0d 09 55 53 45 | 53 0d 09 09 54 79 70 65 |8K}..USE|S...Type|
|000002f0| 73 2c 20 4d 65 6d 6f 72 | 79 2c 20 51 75 69 63 6b |s, Memor|y, Quick|
|00000300| 44 72 61 77 2c 20 52 65 | 73 6f 75 72 63 65 73 2c |Draw, Re|sources,|
|00000310| 20 45 76 65 6e 74 73 2c | 20 4d 65 6e 75 73 2c 20 | Events,| Menus, |
|00000320| 54 6f 6f 6c 55 74 69 6c | 73 2c 20 4d 69 78 65 64 |ToolUtil|s, Mixed|
|00000330| 4d 6f 64 65 3b 0d 09 43 | 4f 4e 53 54 0d 0d 09 09 |Mode;..C|ONST....|
|00000340| 63 75 73 74 6f 6d 44 65 | 66 50 72 6f 63 53 69 67 |customDe|fProcSig|
|00000350| 20 3d 20 27 43 55 53 54 | 27 3b 0d 09 09 61 72 65 | = 'CUST|';...are|
|00000360| 59 6f 75 43 75 73 74 6f | 6d 4d 73 67 20 3d 20 6f |YouCusto|mMsg = o|
|00000370| 72 64 28 27 2a 27 29 20 | 2a 20 32 35 36 20 2b 20 |rd('*') |* 256 + |
|00000380| 6f 72 64 28 27 2a 27 29 | 3b 0d 09 09 67 65 74 56 |ord('*')|;...getV|
|00000390| 65 72 73 69 6f 6e 4d 73 | 67 20 3d 20 6f 72 64 28 |ersionMs|g = ord(|
|000003a0| 27 2a 27 29 20 2a 20 32 | 35 36 20 2b 20 6f 72 64 |'*') * 2|56 + ord|
|000003b0| 28 27 76 27 29 3b 0d 09 | 09 67 65 74 43 6f 70 79 |('v');..|.getCopy|
|000003c0| 72 69 67 68 74 4d 73 67 | 20 3d 20 6f 72 64 28 27 |rightMsg| = ord('|
|000003d0| 43 27 29 20 2a 20 32 35 | 36 20 2b 20 6f 72 64 28 |C') * 25|6 + ord(|
|000003e0| 27 43 27 29 3b 0d 09 09 | 73 65 74 43 61 6c 6c 62 |'C');...|setCallb|
|000003f0| 61 63 6b 4d 73 67 20 3d | 20 6f 72 64 28 27 2a 27 |ackMsg =| ord('*'|
|00000400| 29 20 2a 20 32 35 36 20 | 2b 20 6f 72 64 28 27 63 |) * 256 |+ ord('c|
|00000410| 27 29 3b 0d 09 09 73 74 | 72 69 70 43 75 73 74 6f |');...st|ripCusto|
|00000420| 6d 44 61 74 61 4d 73 67 | 20 3d 20 6f 72 64 28 27 |mDataMsg| = ord('|
|00000430| 2a 27 29 20 2a 20 32 35 | 36 20 2b 20 6f 72 64 28 |*') * 25|6 + ord(|
|00000440| 27 64 27 29 3b 0d 09 09 | 73 65 74 50 72 65 66 73 |'d');...|setPrefs|
|00000450| 4d 73 67 20 3d 20 6f 72 | 64 28 27 2a 27 29 20 2a |Msg = or|d('*') *|
|00000460| 20 32 35 36 20 2b 20 6f | 72 64 28 27 70 27 29 3b | 256 + o|rd('p');|
|00000470| 0d 09 09 73 65 74 4b 65 | 79 47 72 61 70 68 69 63 |...setKe|yGraphic|
|00000480| 73 4d 73 67 20 20 3d 20 | 6f 72 64 28 27 2a 27 29 |sMsg = |ord('*')|
|00000490| 20 2a 20 32 35 36 20 2b | 20 6f 72 64 28 27 67 27 | * 256 +| ord('g'|
|000004a0| 29 3b 0d 09 09 73 65 74 | 53 6d 61 6c 6c 49 63 6f |);...set|SmallIco|
|000004b0| 6e 49 44 4d 73 67 20 3d | 20 6f 72 64 28 27 2a 27 |nIDMsg =| ord('*'|
|000004c0| 29 20 2a 20 32 35 36 20 | 2b 20 6f 72 64 28 27 69 |) * 256 |+ ord('i|
|000004d0| 27 29 3b 0d 09 09 0d 09 | 09 6d 4d 65 6e 75 4b 65 |');.....|.mMenuKe|
|000004e0| 79 4d 73 67 20 3d 20 6f | 72 64 28 27 53 27 29 20 |yMsg = o|rd('S') |
|000004f0| 2a 20 32 35 36 20 2b 20 | 6f 72 64 28 27 4b 27 29 |* 256 + |ord('K')|
|00000500| 3b 09 09 7b 73 65 65 20 | 69 66 20 6b 65 79 20 70 |;..{see |if key p|
|00000510| 72 65 73 73 20 69 73 20 | 6b 65 79 2d 65 71 75 69 |ress is |key-equi|
|00000520| 76 20 66 6f 72 20 74 68 | 69 73 20 6d 65 6e 75 7d |v for th|is menu}|
|00000530| 0d 09 09 6d 44 72 61 77 | 49 74 65 6d 53 74 61 74 |...mDraw|ItemStat|
|00000540| 65 4d 73 67 20 3d 20 6f | 72 64 28 27 53 27 29 20 |eMsg = o|rd('S') |
|00000550| 2a 20 32 35 36 20 2b 20 | 6f 72 64 28 27 44 27 29 |* 256 + |ord('D')|
|00000560| 3b 09 09 7b 20 64 72 61 | 77 20 74 68 65 20 73 70 |;..{ dra|w the sp|
|00000570| 65 63 69 66 69 65 64 20 | 69 74 65 6d 20 69 6e 20 |ecified |item in |
|00000580| 74 68 65 20 73 70 65 63 | 69 66 65 64 20 62 6f 78 |the spec|ifed box|
|00000590| 20 7d 0d 09 09 6d 43 6f | 75 6e 74 49 74 65 6d 73 | }...mCo|untItems|
|000005a0| 4d 73 67 20 3d 20 6f 72 | 64 28 27 53 27 29 20 2a |Msg = or|d('S') *|
|000005b0| 20 32 35 36 20 2b 20 6f | 72 64 28 27 43 27 29 3b | 256 + o|rd('C');|
|000005c0| 09 7b 20 72 65 74 75 72 | 6e 20 63 6f 75 6e 74 20 |.{ retur|n count |
|000005d0| 6f 66 20 69 74 65 6d 73 | 20 69 6e 20 6d 65 6e 75 |of items| in menu|
|000005e0| 20 7d 0d 0d 09 09 63 62 | 42 61 73 69 63 44 61 74 | }....cb|BasicDat|
|000005f0| 61 4f 6e 6c 79 4d 73 67 | 20 3d 20 31 3b 0d 09 09 |aOnlyMsg| = 1;...|
|00000600| 63 62 49 63 6f 6e 4f 6e | 6c 79 4d 73 67 20 3d 20 |cbIconOn|lyMsg = |
|00000610| 32 3b 0d 09 09 63 62 47 | 65 74 4c 6f 6e 67 65 73 |2;...cbG|etLonges|
|00000620| 74 49 74 65 6d 4d 73 67 | 20 3d 20 33 3b 0d 0d 09 |tItemMsg| = 3;...|
|00000630| 54 59 50 45 0d 09 09 66 | 6c 65 78 53 74 79 6c 65 |TYPE...f|lexStyle|
|00000640| 20 3d 20 50 41 43 4b 45 | 44 20 52 45 43 4f 52 44 | = PACKE|D RECORD|
|00000650| 20 43 41 53 45 20 42 6f | 6f 6c 65 61 6e 20 4f 46 | CASE Bo|olean OF|
|00000660| 0d 09 09 09 66 61 6c 73 | 65 20 3a 20 28 20 73 20 |....fals|e : ( s |
|00000670| 3a 20 53 74 79 6c 65 20 | 29 3b 0d 09 09 09 74 72 |: Style |);....tr|
|00000680| 75 65 20 3a 20 28 20 76 | 61 6c 20 3a 20 53 69 67 |ue : ( v|al : Sig|
|00000690| 6e 65 64 42 79 74 65 20 | 29 3b 0d 09 09 45 4e 44 |nedByte |);...END|
|000006a0| 3b 0d 09 09 0d 09 09 4d | 65 6e 75 50 72 65 66 73 |;......M|enuPrefs|
|000006b0| 48 61 6e 64 6c 65 20 3d | 20 5e 4d 65 6e 75 50 72 |Handle =| ^MenuPr|
|000006c0| 65 66 73 50 74 72 3b 0d | 09 09 4d 65 6e 75 50 72 |efsPtr;.|..MenuPr|
|000006d0| 65 66 73 50 74 72 20 3d | 20 5e 4d 65 6e 75 50 72 |efsPtr =| ^MenuPr|
|000006e0| 65 66 73 52 65 63 3b 0d | 09 09 4d 65 6e 75 50 72 |efsRec;.|..MenuPr|
|000006f0| 65 66 73 52 65 63 20 3d | 20 50 41 43 4b 45 44 20 |efsRec =| PACKED |
|00000700| 52 45 43 4f 52 44 0d 09 | 09 09 09 69 73 44 79 6e |RECORD..|...isDyn|
|00000710| 61 6d 69 63 46 6c 61 67 | 2c 20 66 6f 72 63 65 4e |amicFlag|, forceN|
|00000720| 65 77 47 72 6f 75 70 46 | 6c 61 67 2c 20 75 73 65 |ewGroupF|lag, use|
|00000730| 43 61 6c 6c 62 61 63 6b | 46 6c 61 67 2c 20 63 6f |Callback|Flag, co|
|00000740| 6e 74 72 6f 6c 4b 65 79 | 46 6c 61 67 2c 20 6f 70 |ntrolKey|Flag, op|
|00000750| 74 69 6f 6e 4b 65 79 46 | 6c 61 67 2c 20 73 68 69 |tionKeyF|lag, shi|
|00000760| 66 74 4b 65 79 46 6c 61 | 67 2c 20 63 6d 64 4b 65 |ftKeyFla|g, cmdKe|
|00000770| 79 46 6c 61 67 2c 20 75 | 6e 75 73 65 64 3a 20 66 |yFlag, u|nused: f|
|00000780| 6c 65 78 53 74 79 6c 65 | 3b 0d 09 09 09 09 72 65 |lexStyle|;.....re|
|00000790| 71 75 69 72 65 64 4d 6f | 64 69 66 69 65 72 73 3a |quiredMo|difiers:|
|000007a0| 20 69 6e 74 65 67 65 72 | 3b 0d 09 09 09 09 75 6e | integer|;.....un|
|000007b0| 75 73 65 64 32 20 3a 20 | 55 49 6e 74 33 32 3b 20 |used2 : |UInt32; |
|000007c0| 7b 20 72 65 73 65 72 76 | 65 64 20 66 6f 72 20 66 |{ reserv|ed for f|
|000007d0| 75 74 75 72 65 20 75 73 | 65 20 7d 0d 09 09 09 09 |uture us|e }.....|
|000007e0| 75 6e 75 73 65 64 33 20 | 3a 20 55 49 6e 74 33 32 |unused3 |: UInt32|
|000007f0| 3b 20 7b 20 72 65 73 65 | 72 76 65 64 20 66 6f 72 |; { rese|rved for|
|00000800| 20 66 75 74 75 72 65 20 | 75 73 65 20 7d 0d 09 09 | future |use }...|
|00000810| 09 45 4e 44 3b 0d 0d 09 | 7b 49 74 65 6d 46 6c 61 |.END;...|{ItemFla|
|00000820| 67 73 52 65 63 3a 20 61 | 64 64 69 74 69 6f 6e 61 |gsRec: a|dditiona|
|00000830| 6c 20 66 69 65 6c 64 73 | 20 73 75 70 70 6f 72 74 |l fields| support|
|00000840| 65 64 20 62 79 20 4d 65 | 72 63 75 74 69 6f 20 4d |ed by Me|rcutio M|
|00000850| 44 45 46 73 7d 0d 09 09 | 49 74 65 6d 46 6c 61 67 |DEFs}...|ItemFlag|
|00000860| 73 50 74 72 20 3d 20 5e | 49 74 65 6d 46 6c 61 67 |sPtr = ^|ItemFlag|
|00000870| 73 52 65 63 3b 0d 09 09 | 49 74 65 6d 46 6c 61 67 |sRec;...|ItemFlag|
|00000880| 73 52 65 63 20 3d 20 50 | 41 43 4b 45 44 20 52 45 |sRec = P|ACKED RE|
|00000890| 43 4f 52 44 0d 09 09 09 | 7b 20 68 69 67 68 20 62 |CORD....|{ high b|
|000008a0| 79 74 65 20 7d 0d 09 09 | 09 09 66 6f 72 63 65 4e |yte }...|..forceN|
|000008b0| 65 77 47 72 6f 75 70 3a | 20 62 6f 6f 6c 65 61 6e |ewGroup:| boolean|
|000008c0| 3b 0d 09 09 09 09 69 73 | 44 79 6e 61 6d 69 63 3a |;.....is|Dynamic:|
|000008d0| 20 62 6f 6f 6c 65 61 6e | 3b 0d 09 09 09 09 75 73 | boolean|;.....us|
|000008e0| 65 43 61 6c 6c 62 61 63 | 6b 3a 20 62 6f 6f 6c 65 |eCallbac|k: boole|
|000008f0| 61 6e 3b 0d 09 09 09 09 | 63 6f 6e 74 72 6f 6c 4b |an;.....|controlK|
|00000900| 65 79 3a 20 62 6f 6f 6c | 65 61 6e 3b 0d 09 09 09 |ey: bool|ean;....|
|00000910| 09 6f 70 74 69 6f 6e 4b | 65 79 3a 20 62 6f 6f 6c |.optionK|ey: bool|
|00000920| 65 61 6e 3b 0d 09 09 09 | 09 75 6e 75 73 65 64 31 |ean;....|.unused1|
|00000930| 30 3a 20 62 6f 6f 6c 65 | 61 6e 3b 0d 09 09 09 09 |0: boole|an;.....|
|00000940| 73 68 69 66 74 4b 65 79 | 3a 20 62 6f 6f 6c 65 61 |shiftKey|: boolea|
|00000950| 6e 3b 0d 09 09 09 09 63 | 6d 64 4b 65 79 3a 20 62 |n;.....c|mdKey: b|
|00000960| 6f 6f 6c 65 61 6e 3b 0d | 0d 09 09 09 7b 20 6c 6f |oolean;.|....{ lo|
|00000970| 77 20 62 79 74 65 20 7d | 0d 09 09 09 09 69 73 48 |w byte }|.....isH|
|00000980| 69 65 72 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 09 |ier: boo|lean;...|
|00000990| 09 09 63 68 61 6e 67 65 | 64 42 79 43 61 6c 6c 62 |..change|dByCallb|
|000009a0| 61 63 6b 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 09 |ack: boo|lean;...|
|000009b0| 09 09 45 6e 61 62 6c 65 | 64 3a 20 62 6f 6f 6c 65 |..Enable|d: boole|
|000009c0| 61 6e 3b 0d 09 09 09 09 | 68 69 6c 69 74 65 64 3a |an;.....|hilited:|
|000009d0| 20 62 6f 6f 6c 65 61 6e | 3b 0d 09 09 09 09 69 63 | boolean|;.....ic|
|000009e0| 6f 6e 49 73 53 6d 61 6c | 6c 3a 20 62 6f 6f 6c 65 |onIsSmal|l: boole|
|000009f0| 61 6e 3b 0d 09 09 09 09 | 68 61 73 49 63 6f 6e 3a |an;.....|hasIcon:|
|00000a00| 20 62 6f 6f 6c 65 61 6e | 3b 0d 09 09 09 09 73 61 | boolean|;.....sa|
|00000a10| 6d 65 41 6c 74 65 72 6e | 61 74 65 41 73 4c 61 73 |meAltern|ateAsLas|
|00000a20| 74 54 69 6d 65 3a 62 6f | 6f 6c 65 61 6e 3b 0d 09 |tTime:bo|olean;..|
|00000a30| 09 09 09 64 6f 6e 74 44 | 69 73 70 6f 73 65 49 63 |...dontD|isposeIc|
|00000a40| 6f 6e 3a 20 62 6f 6f 6c | 65 61 6e 3b 0d 09 09 09 |on: bool|ean;....|
|00000a50| 45 4e 44 3b 0d 0d 09 7b | 53 74 64 49 74 65 6d 44 |END;...{|StdItemD|
|00000a60| 61 74 61 3a 20 72 65 63 | 6f 72 64 20 73 74 72 75 |ata: rec|ord stru|
|00000a70| 63 74 75 72 65 20 66 72 | 6f 6d 20 74 68 65 20 73 |cture fr|om the s|
|00000a80| 74 61 6e 64 61 72 64 20 | 6d 65 6e 75 20 69 74 65 |tandard |menu ite|
|00000a90| 6d 20 73 74 72 75 63 74 | 75 72 65 7d 0d 09 09 52 |m struct|ure}...R|
|00000aa0| 69 63 68 49 74 65 6d 44 | 61 74 61 20 3d 20 50 41 |ichItemD|ata = PA|
|00000ab0| 43 4b 45 44 20 52 45 43 | 4f 52 44 0d 09 09 09 09 |CKED REC|ORD.....|
|00000ac0| 69 63 6f 6e 49 44 3a 20 | 42 79 74 65 3b 09 09 7b |iconID: |Byte;..{|
|00000ad0| 20 72 65 73 6f 75 72 63 | 65 20 49 44 20 6f 66 20 | resourc|e ID of |
|00000ae0| 74 68 65 20 69 63 6f 6e | 20 74 6f 20 64 69 73 70 |the icon| to disp|
|00000af0| 6c 61 79 20 28 30 20 69 | 66 20 6e 6f 6e 65 29 20 |lay (0 i|f none) |
|00000b00| 7d 0d 09 09 09 09 6b 65 | 79 45 71 3a 20 63 68 61 |}.....ke|yEq: cha|
|00000b10| 72 3b 09 09 7b 20 6b 65 | 79 62 6f 61 72 64 20 65 |r;..{ ke|yboard e|
|00000b20| 71 75 69 76 61 6c 65 6e | 74 20 28 6f 72 20 73 70 |quivalen|t (or sp|
|00000b30| 65 63 69 61 6c 20 63 6f | 6e 74 72 6f 6c 20 76 61 |ecial co|ntrol va|
|00000b40| 6c 75 65 29 20 7d 0d 09 | 09 09 09 6d 61 72 6b 3a |lue) }..|...mark:|
|00000b50| 20 63 68 61 72 3b 09 09 | 7b 20 6d 61 72 6b 20 63 | char;..|{ mark c|
|00000b60| 68 61 72 61 63 74 65 72 | 2c 20 28 63 68 72 28 30 |haracter|, (chr(0|
|00000b70| 29 20 69 66 20 6e 6f 6e | 65 29 20 7d 0d 09 09 09 |) if non|e) }....|
|00000b80| 09 74 65 78 74 53 74 79 | 6c 65 3a 20 66 6c 65 78 |.textSty|le: flex|
|00000b90| 53 74 79 6c 65 3b 20 7b | 20 74 65 78 74 20 73 74 |Style; {| text st|
|00000ba0| 79 6c 65 20 6f 66 20 74 | 68 65 20 69 74 65 6d 20 |yle of t|he item |
|00000bb0| 7d 0d 09 09 09 09 69 74 | 65 6d 49 44 3a 20 69 6e |}.....it|emID: in|
|00000bc0| 74 65 67 65 72 3b 09 7b | 20 69 6e 64 65 78 20 70 |teger;.{| index p|
|00000bd0| 6f 73 69 74 69 6f 6e 20 | 77 69 74 68 69 6e 20 74 |osition |within t|
|00000be0| 68 65 20 6d 65 6e 75 20 | 7d 0d 09 09 09 09 69 74 |he menu |}.....it|
|00000bf0| 65 6d 52 65 63 74 3a 20 | 52 65 63 74 3b 09 09 7b |emRect: |Rect;..{|
|00000c00| 20 77 68 65 72 65 20 74 | 68 65 20 69 74 65 6d 20 | where t|he item |
|00000c10| 77 69 6c 6c 20 62 65 20 | 64 72 61 77 6e 20 7d 0d |will be |drawn }.|
|00000c20| 09 09 09 09 66 6c 61 67 | 73 3a 20 49 74 65 6d 46 |....flag|s: ItemF|
|00000c30| 6c 61 67 73 52 65 63 3b | 09 7b 20 73 70 65 63 69 |lagsRec;|.{ speci|
|00000c40| 61 6c 20 4d 65 72 63 75 | 74 69 6f 20 66 6c 61 67 |al Mercu|tio flag|
|00000c50| 73 20 7d 0d 09 09 09 09 | 69 63 6f 6e 54 79 70 65 |s }.....|iconType|
|00000c60| 3a 20 52 65 73 54 79 70 | 65 3b 09 7b 20 72 65 73 |: ResTyp|e;.{ res|
|00000c70| 6f 75 72 63 65 20 74 79 | 70 65 20 6f 66 20 74 68 |ource ty|pe of th|
|00000c80| 65 20 69 63 6f 6e 20 28 | 75 73 65 64 20 66 6f 72 |e icon (|used for|
|00000c90| 20 64 69 73 70 6f 73 69 | 6e 67 20 6f 66 20 69 63 | disposi|ng of ic|
|00000ca0| 6f 6e 20 64 61 74 61 29 | 7d 0d 09 09 09 09 68 49 |on data)|}.....hI|
|00000cb0| 63 6f 6e 3a 20 48 61 6e | 64 6c 65 3b 09 09 7b 20 |con: Han|dle;..{ |
|00000cc0| 48 61 6e 64 6c 65 20 74 | 6f 20 74 68 65 20 69 63 |Handle t|o the ic|
|00000cd0| 6f 6e 20 64 61 74 61 20 | 7d 0d 09 09 09 09 70 53 |on data |}.....pS|
|00000ce0| 74 72 69 6e 67 3a 20 53 | 74 72 69 6e 67 50 74 72 |tring: S|tringPtr|
|00000cf0| 3b 09 7b 20 70 6f 69 6e | 74 73 20 74 6f 20 69 74 |;.{ poin|ts to it|
|00000d00| 65 6d 53 74 72 2c 20 6f | 72 20 74 6f 20 73 74 72 |emStr, o|r to str|
|00000d10| 69 6e 67 20 69 6e 20 4d | 65 6e 75 48 61 6e 64 6c |ing in M|enuHandl|
|00000d20| 65 20 7d 0d 09 09 09 09 | 69 74 65 6d 53 74 72 3a |e }.....|itemStr:|
|00000d30| 20 53 74 72 32 35 35 3b | 09 7b 20 75 73 65 64 20 | Str255;|.{ used |
|00000d40| 66 6f 72 20 63 61 6c 6c | 62 61 63 6b 20 73 74 72 |for call|back str|
|00000d50| 69 6e 67 20 70 61 73 73 | 69 6e 67 20 7d 0d 09 09 |ing pass|ing }...|
|00000d60| 09 09 63 62 4d 73 67 3a | 20 69 6e 74 65 67 65 72 |..cbMsg:| integer|
|00000d70| 3b 09 09 7b 20 63 61 6c | 6c 62 61 63 6b 20 6d 65 |;..{ cal|lback me|
|00000d80| 73 73 61 67 65 20 7d 0d | 09 09 09 45 4e 44 3b 0d |ssage }.|...END;.|
|00000d90| 09 09 52 69 63 68 49 74 | 65 6d 50 74 72 20 3d 20 |..RichIt|emPtr = |
|00000da0| 5e 52 69 63 68 49 74 65 | 6d 44 61 74 61 3b 0d 0d |^RichIte|mData;..|
|00000db0| 09 43 4f 4e 53 54 0d 09 | 09 75 70 70 4d 65 72 63 |.CONST..|.uppMerc|
|00000dc0| 75 74 69 6f 43 61 6c 6c | 62 61 63 6b 50 72 6f 63 |utioCall|backProc|
|00000dd0| 49 6e 66 6f 20 3d 20 24 | 30 30 30 30 30 45 38 30 |Info = $|00000E80|
|00000de0| 3b 20 7b 20 55 50 50 20 | 66 6f 72 20 4d 65 72 63 |; { UPP |for Merc|
|00000df0| 75 74 69 6f 20 63 61 6c | 6c 62 61 63 6b 20 70 72 |utio cal|lback pr|
|00000e00| 6f 63 65 64 75 72 65 20 | 7d 0d 0d 09 54 59 50 45 |ocedure |}...TYPE|
|00000e10| 0d 09 7b 24 49 46 43 20 | 50 52 4f 43 54 59 50 45 |..{$IFC |PROCTYPE|
|00000e20| 20 7d 0d 09 09 4d 65 72 | 63 75 74 69 6f 43 61 6c | }...Mer|cutioCal|
|00000e30| 6c 62 61 63 6b 50 72 6f | 63 50 74 72 20 3d 20 50 |lbackPro|cPtr = P|
|00000e40| 52 4f 43 45 44 55 52 45 | 20 28 6d 65 6e 75 49 44 |ROCEDURE| (menuID|
|00000e50| 3a 20 69 6e 74 65 67 65 | 72 3b 20 70 72 65 76 69 |: intege|r; previ|
|00000e60| 6f 75 73 4d 6f 64 69 66 | 69 65 72 73 3a 20 69 6e |ousModif|iers: in|
|00000e70| 74 65 67 65 72 3b 20 56 | 41 52 20 69 74 65 6d 44 |teger; V|AR itemD|
|00000e80| 61 74 61 3a 20 52 69 63 | 68 49 74 65 6d 44 61 74 |ata: Ric|hItemDat|
|00000e90| 61 29 3b 0d 09 7b 24 45 | 4c 53 45 43 7d 0d 09 09 |a);..{$E|LSEC}...|
|00000ea0| 4d 65 72 63 75 74 69 6f | 43 61 6c 6c 62 61 63 6b |Mercutio|Callback|
|00000eb0| 50 72 6f 63 50 74 72 20 | 3d 20 50 72 6f 63 50 74 |ProcPtr |= ProcPt|
|00000ec0| 72 3b 20 20 7b 20 50 52 | 4f 43 45 44 55 52 45 20 |r; { PR|OCEDURE |
|00000ed0| 4d 79 47 65 74 49 74 65 | 6d 49 6e 66 6f 20 28 6d |MyGetIte|mInfo (m|
|00000ee0| 65 6e 75 49 44 3a 20 69 | 6e 74 65 67 65 72 3b 20 |enuID: i|nteger; |
|00000ef0| 70 72 65 76 69 6f 75 73 | 4d 6f 64 69 66 69 65 72 |previous|Modifier|
|00000f00| 73 3a 20 69 6e 74 65 67 | 65 72 3b 20 56 41 52 20 |s: integ|er; VAR |
|00000f10| 69 74 65 6d 44 61 74 61 | 3a 20 52 69 63 68 49 74 |itemData|: RichIt|
|00000f20| 65 6d 44 61 74 61 29 3b | 20 7d 0d 09 7b 24 45 4e |emData);| }..{$EN|
|00000f30| 44 43 7d 0d 09 09 4d 65 | 72 63 75 74 69 6f 43 61 |DC}...Me|rcutioCa|
|00000f40| 6c 6c 62 61 63 6b 55 50 | 50 20 3d 20 55 6e 69 76 |llbackUP|P = Univ|
|00000f50| 65 72 73 61 6c 50 72 6f | 63 50 74 72 3b 0d 0d 0d |ersalPro|cPtr;...|
|00000f60| 7b 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |{xxxxxxx|xxxxxxxx|
|00000f70| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00000f80| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00000f90| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00000fa0| 78 78 78 78 78 78 78 78 | 78 78 78 78 7d 0d 7b 78 |xxxxxxxx|xxxx}.{x|
|00000fb0| 7d 0d 7b 78 09 4d 44 45 | 46 5f 4d 65 6e 75 4b 65 |}.{x.MDE|F_MenuKe|
|00000fc0| 79 20 69 73 20 61 20 72 | 65 70 6c 61 63 65 6d 65 |y is a r|eplaceme|
|00000fd0| 6e 74 20 66 6f 72 20 74 | 68 65 20 73 74 61 6e 64 |nt for t|he stand|
|00000fe0| 61 72 64 20 74 6f 6f 6c | 62 6f 78 20 63 61 6c 6c |ard tool|box call|
|00000ff0| 20 4d 65 6e 75 4b 65 79 | 20 66 6f 72 20 75 73 65 | MenuKey| for use|
|00001000| 20 77 69 74 68 20 74 68 | 65 7d 0d 7b 78 09 4d 65 | with th|e}.{x.Me|
|00001010| 72 63 75 74 69 6f 20 4d | 44 45 46 2e 20 47 69 76 |rcutio M|DEF. Giv|
|00001020| 65 6e 20 74 68 65 20 6b | 65 79 70 72 65 73 73 20 |en the k|eypress |
|00001030| 6d 65 73 73 61 67 65 20 | 61 6e 64 20 6d 6f 64 69 |message |and modi|
|00001040| 66 69 65 72 73 20 70 61 | 72 61 6d 65 74 65 72 73 |fiers pa|rameters|
|00001050| 20 66 72 6f 6d 20 61 20 | 73 74 61 6e 64 61 72 64 | from a |standard|
|00001060| 20 65 76 65 6e 74 2c 20 | 69 74 20 7d 0d 7b 78 09 | event, |it }.{x.|
|00001070| 63 68 65 63 6b 73 20 74 | 6f 20 73 65 65 20 69 66 |checks t|o see if|
|00001080| 20 74 68 65 20 6b 65 79 | 70 72 65 73 73 20 69 73 | the key|press is|
|00001090| 20 61 20 6b 65 79 2d 65 | 71 75 69 76 61 6c 65 6e | a key-e|quivalen|
|000010a0| 74 20 66 6f 72 20 61 20 | 70 61 72 74 69 63 75 6c |t for a |particul|
|000010b0| 61 72 20 6d 65 6e 75 69 | 74 65 6d 2e 20 49 66 20 |ar menui|tem. If |
|000010c0| 79 6f 75 20 61 72 65 20 | 63 75 72 72 65 6e 74 6c |you are |currentl|
|000010d0| 79 7d 0d 7b 78 09 75 73 | 69 6e 67 20 63 75 73 74 |y}.{x.us|ing cust|
|000010e0| 6f 6d 20 6d 65 6e 75 73 | 20 28 69 2e 65 2e 20 6d |om menus| (i.e. m|
|000010f0| 65 6e 75 73 20 75 73 69 | 6e 67 20 61 20 4d 65 72 |enus usi|ng a Mer|
|00001100| 63 75 74 69 6f 20 4d 44 | 45 46 29 2c 20 70 61 73 |cutio MD|EF), pas|
|00001110| 73 20 74 68 65 20 48 61 | 6e 64 6c 65 20 74 6f 20 |s the Ha|ndle to |
|00001120| 6f 6e 65 20 6f 66 20 74 | 68 65 73 65 20 6d 65 6e |one of t|hese men|
|00001130| 75 73 20 69 6e 7d 0d 7b | 78 09 68 4d 65 6e 75 2e |us in}.{|x.hMenu.|
|00001140| 20 49 66 20 79 6f 75 20 | 61 72 65 20 6e 6f 74 20 | If you |are not |
|00001150| 75 73 69 6e 67 20 63 75 | 73 74 6f 6d 20 6d 65 6e |using cu|stom men|
|00001160| 75 73 2c 20 70 61 73 73 | 20 69 6e 20 4e 49 4c 20 |us, pass| in NIL |
|00001170| 6f 72 20 61 6e 6f 74 68 | 65 72 20 6d 65 6e 75 2c |or anoth|er menu,|
|00001180| 20 61 6e 64 20 4d 44 45 | 46 5f 4d 65 6e 75 4b 65 | and MDE|F_MenuKe|
|00001190| 79 20 77 69 6c 6c 20 75 | 73 65 20 74 68 65 7d 0d |y will u|se the}.|
|000011a0| 7b 78 09 73 74 61 6e 64 | 61 72 64 20 4d 65 6e 75 |{x.stand|ard Menu|
|000011b0| 4b 65 79 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |Key func|tion to |
|000011c0| 69 6e 74 65 72 70 72 65 | 74 20 74 68 65 20 6b 65 |interpre|t the ke|
|000011d0| 79 70 72 65 73 73 2e 7d | 0d 7b 78 7d 0d 7b 78 09 |ypress.}|.{x}.{x.|
|000011e0| 41 73 20 77 69 74 68 20 | 4d 65 6e 75 4b 65 79 2c |As with |MenuKey,|
|000011f0| 20 4d 44 45 46 5f 4d 65 | 6e 75 4b 65 79 20 72 65 | MDEF_Me|nuKey re|
|00001200| 74 75 72 6e 73 20 74 68 | 65 20 6d 65 6e 75 20 49 |turns th|e menu I|
|00001210| 44 20 69 6e 20 68 69 67 | 68 20 77 6f 72 64 20 6f |D in hig|h word o|
|00001220| 66 20 74 68 65 20 72 65 | 73 75 6c 74 2c 20 61 6e |f the re|sult, an|
|00001230| 64 20 74 68 65 20 6d 65 | 6e 75 7d 0d 7b 78 09 69 |d the me|nu}.{x.i|
|00001240| 74 65 6d 20 69 6e 20 74 | 68 65 20 6c 6f 77 20 77 |tem in t|he low w|
|00001250| 6f 72 64 2e 7d 0d 7b 78 | 7d 0d 7b 78 78 78 78 78 |ord.}.{x|}.{xxxxx|
|00001260| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001270| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001280| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001290| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000012a0| 78 78 78 78 78 78 7d 0d | 0d 09 46 55 4e 43 54 49 |xxxxxx}.|..FUNCTI|
|000012b0| 4f 4e 20 4d 44 45 46 5f | 4d 65 6e 75 4b 65 79 20 |ON MDEF_|MenuKey |
|000012c0| 28 74 68 65 4d 65 73 73 | 61 67 65 3a 20 6c 6f 6e |(theMess|age: lon|
|000012d0| 67 69 6e 74 3b 20 74 68 | 65 4d 6f 64 69 66 69 65 |gint; th|eModifie|
|000012e0| 72 73 3a 20 69 6e 74 65 | 67 65 72 3b 20 68 4d 65 |rs: inte|ger; hMe|
|000012f0| 6e 75 3a 20 4d 65 6e 75 | 48 61 6e 64 6c 65 29 3a |nu: Menu|Handle):|
|00001300| 20 6c 6f 6e 67 69 6e 74 | 3b 0d 0d 0d 7b 78 78 78 | longint|;...{xxx|
|00001310| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001320| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001330| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001340| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001350| 78 78 78 78 78 78 78 78 | 7d 0d 7b 78 7d 0d 7b 78 |xxxxxxxx|}.{x}.{x|
|00001360| 09 54 68 65 73 65 20 72 | 6f 75 74 69 6e 65 73 20 |.These r|outines |
|00001370| 61 6c 6c 6f 77 20 79 6f | 75 20 74 6f 20 72 65 74 |allow yo|u to ret|
|00001380| 72 69 65 76 65 20 74 68 | 65 20 43 6f 70 79 72 69 |rieve th|e Copyri|
|00001390| 67 68 74 20 61 6e 64 20 | 56 65 72 73 69 6f 6e 20 |ght and |Version |
|000013a0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 7d 0d 7b 78 09 |informat|ion}.{x.|
|000013b0| 65 6d 62 65 64 64 65 64 | 20 77 69 74 68 69 6e 20 |embedded| within |
|000013c0| 74 68 65 20 4d 44 45 46 | 2e 20 54 68 65 20 56 65 |the MDEF|. The Ve|
|000013d0| 72 73 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |rsion in|formatio|
|000013e0| 6e 20 69 73 20 72 65 74 | 75 72 6e 65 64 20 61 73 |n is ret|urned as|
|000013f0| 20 61 20 6c 6f 6e 67 69 | 6e 74 2c 7d 0d 7b 78 09 | a longi|nt,}.{x.|
|00001400| 77 68 69 63 68 20 63 61 | 6e 20 62 65 20 74 79 70 |which ca|n be typ|
|00001410| 65 63 61 73 74 20 74 6f | 20 61 20 6e 6f 72 6d 61 |ecast to| a norma|
|00001420| 6c 20 76 65 72 73 69 6f | 6e 20 72 65 73 6f 75 72 |l versio|n resour|
|00001430| 63 65 2e 7d 0d 7b 78 7d | 0d 7b 78 78 78 78 78 78 |ce.}.{x}|.{xxxxxx|
|00001440| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001450| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001460| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001470| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001480| 78 78 78 78 78 7d 0d 0d | 09 46 55 4e 43 54 49 4f |xxxxx}..|.FUNCTIO|
|00001490| 4e 20 4d 44 45 46 5f 47 | 65 74 43 6f 70 79 72 69 |N MDEF_G|etCopyri|
|000014a0| 67 68 74 20 28 6d 65 6e | 75 3a 20 4d 65 6e 75 48 |ght (men|u: MenuH|
|000014b0| 61 6e 64 6c 65 29 3a 20 | 53 74 72 32 35 35 3b 0d |andle): |Str255;.|
|000014c0| 09 46 55 4e 43 54 49 4f | 4e 20 4d 44 45 46 5f 47 |.FUNCTIO|N MDEF_G|
|000014d0| 65 74 56 65 72 73 69 6f | 6e 20 28 6d 65 6e 75 3a |etVersio|n (menu:|
|000014e0| 20 4d 65 6e 75 48 61 6e | 64 6c 65 29 3a 20 6c 6f | MenuHan|dle): lo|
|000014f0| 6e 67 69 6e 74 3b 0d 0d | 0d 7b 78 78 78 78 78 78 |ngint;..|.{xxxxxx|
|00001500| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001510| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001520| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001530| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001540| 78 78 78 78 78 7d 0d 7b | 78 7d 0d 7b 78 09 4d 44 |xxxxx}.{|x}.{x.MD|
|00001550| 45 46 5f 43 61 6c 63 49 | 74 65 6d 53 69 7a 65 20 |EF_CalcI|temSize |
|00001560| 77 69 6c 6c 20 63 61 6c | 63 75 6c 61 74 65 20 74 |will cal|culate t|
|00001570| 68 65 20 68 65 69 67 68 | 74 20 61 6e 64 20 77 69 |he heigh|t and wi|
|00001580| 64 74 68 20 66 6f 72 20 | 61 20 67 69 76 65 6e 20 |dth for |a given |
|00001590| 6d 65 6e 75 20 69 74 65 | 6d 2e 20 49 74 20 61 73 |menu ite|m. It as|
|000015a0| 73 75 6d 65 73 20 74 68 | 65 20 74 6f 70 20 61 6e |sumes th|e top an|
|000015b0| 64 7d 0d 7b 78 09 6c 65 | 66 74 20 66 69 65 6c 64 |d}.{x.le|ft field|
|000015c0| 73 20 6f 66 20 74 68 65 | 52 65 63 74 20 61 72 65 |s of the|Rect are|
|000015d0| 20 66 69 6c 6c 65 64 20 | 69 6e 3b 20 74 68 65 20 | filled |in; the |
|000015e0| 4d 44 45 46 20 77 69 6c | 6c 20 66 69 6c 6c 20 69 |MDEF wil|l fill i|
|000015f0| 6e 20 74 68 65 20 62 6f | 74 74 6f 6d 20 61 6e 64 |n the bo|ttom and|
|00001600| 20 72 69 67 68 74 2e 7d | 0d 7b 78 7d 0d 7b 78 09 | right.}|.{x}.{x.|
|00001610| 4d 44 45 46 5f 44 72 61 | 77 49 74 65 6d 20 77 69 |MDEF_Dra|wItem wi|
|00001620| 6c 6c 20 64 72 61 77 20 | 61 20 67 69 76 65 6e 20 |ll draw |a given |
|00001630| 69 74 65 6d 20 69 6e 20 | 74 68 65 20 72 65 63 74 |item in |the rect|
|00001640| 61 6e 67 6c 65 20 79 6f | 75 20 73 70 65 63 69 66 |angle yo|u specif|
|00001650| 79 2e 20 59 6f 75 20 63 | 61 6e 20 69 6e 64 69 63 |y. You c|an indic|
|00001660| 61 74 65 20 77 68 65 74 | 68 65 72 20 74 68 65 7d |ate whet|her the}|
|00001670| 0d 7b 78 09 74 68 65 20 | 69 74 65 6d 20 73 68 6f |.{x.the |item sho|
|00001680| 75 6c 64 20 62 65 20 68 | 69 6c 69 74 65 64 20 6f |uld be h|ilited o|
|00001690| 72 20 65 6e 61 62 6c 65 | 64 2e 7d 0d 7b 78 7d 0d |r enable|d.}.{x}.|
|000016a0| 7b 78 09 4d 44 45 46 5f | 44 72 61 77 49 74 65 6d |{x.MDEF_|DrawItem|
|000016b0| 53 74 61 74 65 20 69 73 | 20 73 69 6d 69 6c 61 72 |State is| similar|
|000016c0| 20 62 75 74 20 61 6c 6c | 6f 77 73 20 79 6f 75 20 | but all|ows you |
|000016d0| 74 6f 20 64 72 61 77 20 | 74 68 65 20 69 74 65 6d |to draw |the item|
|000016e0| 20 64 69 73 61 62 6c 65 | 64 20 6f 72 20 68 69 6c | disable|d or hil|
|000016f0| 69 74 65 64 2e 7d 0d 7b | 78 7d 0d 7b 78 78 78 78 |ited.}.{|x}.{xxxx|
|00001700| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001710| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001720| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001730| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001740| 78 78 78 78 78 78 78 7d | 0d 0d 09 50 52 4f 43 45 |xxxxxxx}|...PROCE|
|00001750| 44 55 52 45 20 4d 44 45 | 46 5f 43 61 6c 63 49 74 |DURE MDE|F_CalcIt|
|00001760| 65 6d 53 69 7a 65 20 28 | 6d 65 6e 75 3a 20 4d 65 |emSize (|menu: Me|
|00001770| 6e 75 48 61 6e 64 6c 65 | 3b 20 69 74 65 6d 3a 20 |nuHandle|; item: |
|00001780| 69 6e 74 65 67 65 72 3b | 20 56 41 52 20 74 68 65 |integer;| VAR the|
|00001790| 52 65 63 74 3a 20 52 65 | 63 74 29 3b 0d 09 50 52 |Rect: Re|ct);..PR|
|000017a0| 4f 43 45 44 55 52 45 20 | 4d 44 45 46 5f 44 72 61 |OCEDURE |MDEF_Dra|
|000017b0| 77 49 74 65 6d 20 28 6d | 65 6e 75 3a 20 4d 65 6e |wItem (m|enu: Men|
|000017c0| 75 48 61 6e 64 6c 65 3b | 20 69 74 65 6d 3a 20 69 |uHandle;| item: i|
|000017d0| 6e 74 65 67 65 72 3b 20 | 64 65 73 74 52 65 63 74 |nteger; |destRect|
|000017e0| 3a 20 52 65 63 74 29 3b | 0d 09 50 52 4f 43 45 44 |: Rect);|..PROCED|
|000017f0| 55 52 45 20 4d 44 45 46 | 5f 44 72 61 77 49 74 65 |URE MDEF|_DrawIte|
|00001800| 6d 53 74 61 74 65 20 28 | 6d 65 6e 75 3a 20 4d 65 |mState (|menu: Me|
|00001810| 6e 75 48 61 6e 64 6c 65 | 3b 20 69 74 65 6d 3a 20 |nuHandle|; item: |
|00001820| 69 6e 74 65 67 65 72 3b | 20 64 65 73 74 52 65 63 |integer;| destRec|
|00001830| 74 3a 20 52 65 63 74 3b | 20 68 69 6c 69 74 65 64 |t: Rect;| hilited|
|00001840| 2c 20 65 6e 61 62 6c 65 | 64 3a 20 62 6f 6f 6c 65 |, enable|d: boole|
|00001850| 61 6e 29 3b 0d 0d 7b 78 | 78 78 78 78 78 78 78 78 |an);..{x|xxxxxxxx|
|00001860| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001870| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001880| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001890| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000018a0| 78 78 7d 0d 7b 78 7d 0d | 7b 78 09 4d 44 45 46 5f |xx}.{x}.|{x.MDEF_|
|000018b0| 53 74 72 69 70 43 75 73 | 74 6f 6d 4d 65 6e 75 44 |StripCus|tomMenuD|
|000018c0| 61 74 61 20 77 69 6c 6c | 20 72 65 6d 6f 76 65 20 |ata will| remove |
|000018d0| 61 6e 79 20 63 75 73 74 | 6f 6d 20 64 61 74 61 20 |any cust|om data |
|000018e0| 61 6c 6c 6f 63 61 74 65 | 64 20 62 79 20 74 68 65 |allocate|d by the|
|000018f0| 20 4d 65 72 63 75 74 69 | 6f 20 4d 44 45 46 73 2e | Mercuti|o MDEFs.|
|00001900| 20 55 73 65 20 74 68 69 | 73 7d 0d 7b 78 09 62 65 | Use thi|s}.{x.be|
|00001910| 66 6f 72 65 20 77 72 69 | 74 69 6e 67 20 61 20 4d |fore wri|ting a M|
|00001920| 45 4e 55 20 72 65 73 6f | 75 72 63 65 20 74 6f 20 |ENU reso|urce to |
|00001930| 64 69 73 6b 20 28 65 73 | 70 2e 20 69 66 20 79 6f |disk (es|p. if yo|
|00001940| 75 20 61 72 65 20 75 73 | 69 6e 67 20 63 61 6c 6c |u are us|ing call|
|00001950| 62 61 63 6b 73 29 7d 0d | 7b 78 7d 0d 7b 78 78 78 |backs)}.|{x}.{xxx|
|00001960| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001970| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001980| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001990| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000019a0| 78 78 78 78 78 78 78 78 | 7d 0d 09 50 52 4f 43 45 |xxxxxxxx|}..PROCE|
|000019b0| 44 55 52 45 20 4d 44 45 | 46 5f 53 74 72 69 70 43 |DURE MDE|F_StripC|
|000019c0| 75 73 74 6f 6d 4d 65 6e | 75 44 61 74 61 20 28 6d |ustomMen|uData (m|
|000019d0| 65 6e 75 3a 20 4d 65 6e | 75 48 61 6e 64 6c 65 29 |enu: Men|uHandle)|
|000019e0| 3b 0d 0d 0d 0d 7b 78 78 | 78 78 78 78 78 78 78 78 |;....{xx|xxxxxxxx|
|000019f0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001a00| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001a10| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001a20| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001a30| 78 7d 0d 7b 78 7d 0d 7b | 78 09 4d 44 45 46 5f 53 |x}.{x}.{|x.MDEF_S|
|00001a40| 65 74 43 61 6c 6c 62 61 | 63 6b 50 72 6f 63 20 73 |etCallba|ckProc s|
|00001a50| 65 74 73 20 74 68 65 20 | 70 72 6f 63 65 64 75 72 |ets the |procedur|
|00001a60| 65 20 74 68 61 74 20 77 | 69 6c 6c 20 62 65 20 63 |e that w|ill be c|
|00001a70| 61 6c 6c 65 64 20 66 6f | 72 20 65 61 63 68 20 69 |alled fo|r each i|
|00001a80| 74 65 6d 20 62 65 66 6f | 72 65 20 69 74 20 69 73 |tem befo|re it is|
|00001a90| 20 64 72 61 77 6e 2e 20 | 54 68 65 7d 0d 7b 78 09 | drawn. |The}.{x.|
|00001aa0| 70 72 6f 63 65 64 75 72 | 65 20 69 73 20 61 6c 73 |procedur|e is als|
|00001ab0| 6f 20 63 61 6c 6c 65 64 | 20 64 75 72 69 6e 67 20 |o called| during |
|00001ac0| 74 68 65 20 53 69 7a 65 | 4d 65 6e 75 20 6d 65 73 |the Size|Menu mes|
|00001ad0| 73 61 67 65 20 63 61 6c | 6c 2e 7d 0d 7b 78 7d 0d |sage cal|l.}.{x}.|
|00001ae0| 7b 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |{xxxxxxx|xxxxxxxx|
|00001af0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001b00| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001b10| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001b20| 78 78 78 78 78 78 78 78 | 78 78 78 78 7d 0d 7b 09 |xxxxxxxx|xxxx}.{.|
|00001b30| 50 52 4f 43 45 44 55 52 | 45 20 4d 44 45 46 5f 53 |PROCEDUR|E MDEF_S|
|00001b40| 65 74 43 61 6c 6c 62 61 | 63 6b 50 72 6f 63 20 28 |etCallba|ckProc (|
|00001b50| 6d 65 6e 75 3a 20 4d 65 | 6e 75 48 61 6e 64 6c 65 |menu: Me|nuHandle|
|00001b60| 3b 20 74 68 65 50 72 6f | 63 3a 20 50 72 6f 63 50 |; thePro|c: ProcP|
|00001b70| 74 72 29 3b 7d 0d 09 50 | 52 4f 43 45 44 55 52 45 |tr);}..P|ROCEDURE|
|00001b80| 20 4d 44 45 46 5f 53 65 | 74 43 61 6c 6c 62 61 63 | MDEF_Se|tCallbac|
|00001b90| 6b 50 72 6f 63 20 28 6d | 65 6e 75 3a 20 4d 65 6e |kProc (m|enu: Men|
|00001ba0| 75 48 61 6e 64 6c 65 3b | 20 74 68 65 50 72 6f 63 |uHandle;| theProc|
|00001bb0| 3a 20 4d 65 72 63 75 74 | 69 6f 43 61 6c 6c 62 61 |: Mercut|ioCallba|
|00001bc0| 63 6b 55 50 50 29 3b 0d | 0d 0d 7b 78 78 78 78 78 |ckUPP);.|..{xxxxx|
|00001bd0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001be0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001bf0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001c00| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001c10| 78 78 78 78 78 78 7d 0d | 7b 78 7d 0d 7b 78 09 4d |xxxxxx}.|{x}.{x.M|
|00001c20| 44 45 46 5f 53 65 74 4d | 65 6e 75 50 72 65 66 73 |DEF_SetM|enuPrefs|
|00001c30| 20 6c 65 74 73 20 79 6f | 75 20 64 65 74 65 72 6d | lets yo|u determ|
|00001c40| 69 6e 65 20 77 68 69 63 | 68 20 73 74 79 6c 65 20 |ine whic|h style |
|00001c50| 62 69 74 73 20 66 6f 72 | 20 74 68 65 20 6d 65 6e |bits for| the men|
|00001c60| 75 49 74 65 6d 73 20 77 | 69 6c 6c 20 62 65 20 69 |uItems w|ill be i|
|00001c70| 6e 74 65 72 65 70 72 65 | 74 65 64 7d 0d 7b 78 09 |nterepre|ted}.{x.|
|00001c80| 61 73 20 66 65 61 74 75 | 72 65 20 66 6c 61 67 73 |as featu|re flags|
|00001c90| 20 66 6f 72 20 74 68 65 | 20 4d 44 45 46 2e 7d 0d | for the| MDEF.}.|
|00001ca0| 7b 78 7d 0d 7b 78 78 78 | 78 78 78 78 78 78 78 78 |{x}.{xxx|xxxxxxxx|
|00001cb0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001cc0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001cd0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001ce0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00001cf0| 7d 0d 09 50 52 4f 43 45 | 44 55 52 45 20 4d 44 45 |}..PROCE|DURE MDE|
|00001d00| 46 5f 53 65 74 4d 65 6e | 75 50 72 65 66 73 20 28 |F_SetMen|uPrefs (|
|00001d10| 6d 65 6e 75 3a 20 4d 65 | 6e 75 48 61 6e 64 6c 65 |menu: Me|nuHandle|
|00001d20| 3b 20 70 50 72 65 66 73 | 3a 20 4d 65 6e 75 50 72 |; pPrefs|: MenuPr|
|00001d30| 65 66 73 50 74 72 29 3b | 0d 0d 09 50 52 4f 43 45 |efsPtr);|...PROCE|
|00001d40| 44 55 52 45 20 4d 44 45 | 46 5f 53 65 74 4b 65 79 |DURE MDE|F_SetKey|
|00001d50| 47 72 61 70 68 69 63 73 | 50 72 65 66 65 72 65 6e |Graphics|Preferen|
|00001d60| 63 65 20 28 6d 65 6e 75 | 3a 20 4d 65 6e 75 48 61 |ce (menu|: MenuHa|
|00001d70| 6e 64 6c 65 3b 20 70 72 | 65 66 65 72 47 72 61 70 |ndle; pr|eferGrap|
|00001d80| 68 69 63 73 3a 20 62 6f | 6f 6c 65 61 6e 29 3b 0d |hics: bo|olean);.|
|00001d90| 09 50 52 4f 43 45 44 55 | 52 45 20 4d 44 45 46 5f |.PROCEDU|RE MDEF_|
|00001da0| 53 65 74 53 6d 61 6c 6c | 49 63 6f 6e 49 44 50 72 |SetSmall|IconIDPr|
|00001db0| 65 66 65 72 65 6e 63 65 | 20 28 6d 65 6e 75 3a 20 |eference| (menu: |
|00001dc0| 4d 65 6e 75 48 61 6e 64 | 6c 65 3b 20 69 63 6f 6e |MenuHand|le; icon|
|00001dd0| 73 53 6d 61 6c 6c 41 62 | 6f 76 65 49 44 3a 20 69 |sSmallAb|oveID: i|
|00001de0| 6e 74 65 67 65 72 29 3b | 0d 0d 09 46 55 4e 43 54 |nteger);|...FUNCT|
|00001df0| 49 4f 4e 20 4e 65 77 4d | 65 72 63 75 74 69 6f 43 |ION NewM|ercutioC|
|00001e00| 61 6c 6c 62 61 63 6b 28 | 75 73 65 72 52 6f 75 74 |allback(|userRout|
|00001e10| 69 6e 65 3a 20 4d 65 72 | 63 75 74 69 6f 43 61 6c |ine: Mer|cutioCal|
|00001e20| 6c 62 61 63 6b 50 72 6f | 63 50 74 72 29 20 3a 20 |lbackPro|cPtr) : |
|00001e30| 4d 65 72 63 75 74 69 6f | 43 61 6c 6c 62 61 63 6b |Mercutio|Callback|
|00001e40| 55 50 50 3b 0d 09 7b 24 | 49 46 43 20 4e 4f 54 20 |UPP;..{$|IFC NOT |
|00001e50| 47 45 4e 45 52 41 54 49 | 4e 47 43 46 4d 20 7d 0d |GENERATI|NGCFM }.|
|00001e60| 09 49 4e 4c 49 4e 45 20 | 24 32 45 39 46 3b 0d 09 |.INLINE |$2E9F;..|
|00001e70| 7b 24 45 4e 44 43 7d 0d | 09 50 52 4f 43 45 44 55 |{$ENDC}.|.PROCEDU|
|00001e80| 52 45 20 43 61 6c 6c 47 | 65 74 49 74 65 6d 49 6e |RE CallG|etItemIn|
|00001e90| 66 6f 20 28 6d 65 6e 75 | 49 44 3a 20 69 6e 74 65 |fo (menu|ID: inte|
|00001ea0| 67 65 72 3b 20 70 72 65 | 76 69 6f 75 73 4d 6f 64 |ger; pre|viousMod|
|00001eb0| 69 66 69 65 72 73 3a 20 | 69 6e 74 65 67 65 72 3b |ifiers: |integer;|
|00001ec0| 20 56 41 52 20 69 74 65 | 6d 44 61 74 61 3a 20 52 | VAR ite|mData: R|
|00001ed0| 69 63 68 49 74 65 6d 44 | 61 74 61 3b 20 64 65 66 |ichItemD|ata; def|
|00001ee0| 50 72 6f 63 3a 20 50 72 | 6f 63 50 74 72 29 3b 0d |Proc: Pr|ocPtr);.|
|00001ef0| 7b 24 49 46 43 20 4e 4f | 54 20 50 4f 57 45 52 50 |{$IFC NO|T POWERP|
|00001f00| 43 7d 0d 09 49 4e 4c 49 | 4e 45 0d 09 09 24 32 30 |C}..INLI|NE...$20|
|00001f10| 35 46 2c 09 7b 20 6d 6f | 76 65 2e 6c 20 28 53 50 |5F,.{ mo|ve.l (SP|
|00001f20| 29 2b 2c 41 30 20 7d 0d | 09 09 24 34 45 39 30 3b |)+,A0 }.|..$4E90;|
|00001f30| 09 7b 20 6a 73 72 20 28 | 41 30 29 20 7d 0d 28 2a |.{ jsr (|A0) }.(*|
|00001f40| 7b 24 45 4c 53 45 43 7d | 0d 09 56 41 52 0d 09 09 |{$ELSEC}|..VAR...|
|00001f50| 63 61 6c 6c 62 61 63 6b | 55 50 50 20 3a 20 4d 65 |callback|UPP : Me|
|00001f60| 72 63 75 74 69 6f 43 61 | 6c 6c 62 61 63 6b 55 50 |rcutioCa|llbackUP|
|00001f70| 50 3b 0d 09 42 45 47 49 | 4e 0d 09 09 63 61 6c 6c |P;..BEGI|N...call|
|00001f80| 62 61 63 6b 55 50 50 20 | 3a 3d 20 4e 65 77 4d 65 |backUPP |:= NewMe|
|00001f90| 72 63 75 74 69 6f 43 61 | 6c 6c 62 61 63 6b 28 4e |rcutioCa|llback(N|
|00001fa0| 65 77 52 6f 75 74 69 6e | 65 44 65 73 63 72 69 70 |ewRoutin|eDescrip|
|00001fb0| 74 6f 72 28 64 65 66 50 | 72 6f 63 2c 20 75 70 70 |tor(defP|roc, upp|
|00001fc0| 4d 65 6e 75 44 65 66 50 | 72 6f 63 49 6e 66 6f 2c |MenuDefP|rocInfo,|
|00001fd0| 20 6b 4d 36 38 6b 49 53 | 41 29 29 3b 0d 09 09 43 | kM68kIS|A));...C|
|00001fe0| 61 6c 6c 4d 65 6e 75 44 | 65 66 50 72 6f 63 28 6d |allMenuD|efProc(m|
|00001ff0| 65 73 73 61 67 65 2c 20 | 74 68 65 4d 65 6e 75 2c |essage, |theMenu,|
|00002000| 20 6d 65 6e 75 52 65 63 | 74 2c 20 68 69 74 50 74 | menuRec|t, hitPt|
|00002010| 2c 20 77 68 69 63 68 49 | 74 65 6d 2c 20 6d 65 6e |, whichI|tem, men|
|00002020| 75 50 72 6f 63 55 50 50 | 29 3b 09 0d 09 09 44 69 |uProcUPP|);....Di|
|00002030| 73 70 6f 73 65 52 6f 75 | 74 69 6e 65 44 65 73 63 |sposeRou|tineDesc|
|00002040| 72 69 70 74 6f 72 28 6d | 65 6e 75 50 72 6f 63 55 |riptor(m|enuProcU|
|00002050| 50 50 29 3b 0d 09 45 4e | 44 3b 2a 29 0d 09 0d 7b |PP);..EN|D;*)...{|
|00002060| 24 45 4e 44 43 7d 0d 0d | 0d 49 4d 50 4c 45 4d 45 |$ENDC}..|.IMPLEME|
|00002070| 4e 54 41 54 49 4f 4e 0d | 0d 09 46 55 4e 43 54 49 |NTATION.|..FUNCTI|
|00002080| 4f 4e 20 4e 65 77 4d 65 | 72 63 75 74 69 6f 43 61 |ON NewMe|rcutioCa|
|00002090| 6c 6c 62 61 63 6b 28 75 | 73 65 72 52 6f 75 74 69 |llback(u|serRouti|
|000020a0| 6e 65 3a 20 4d 65 72 63 | 75 74 69 6f 43 61 6c 6c |ne: Merc|utioCall|
|000020b0| 62 61 63 6b 50 72 6f 63 | 50 74 72 29 20 3a 20 4d |backProc|Ptr) : M|
|000020c0| 65 72 63 75 74 69 6f 43 | 61 6c 6c 62 61 63 6b 55 |ercutioC|allbackU|
|000020d0| 50 50 3b 0d 09 09 42 45 | 47 49 4e 0d 09 09 7b 24 |PP;...BE|GIN...{$|
|000020e0| 49 46 43 20 47 45 4e 45 | 52 41 54 49 4e 47 43 46 |IFC GENE|RATINGCF|
|000020f0| 4d 20 7d 0d 09 09 09 4e | 65 77 4d 65 72 63 75 74 |M }....N|ewMercut|
|00002100| 69 6f 43 61 6c 6c 62 61 | 63 6b 20 3a 3d 20 4e 65 |ioCallba|ck := Ne|
|00002110| 77 52 6f 75 74 69 6e 65 | 44 65 73 63 72 69 70 74 |wRoutine|Descript|
|00002120| 6f 72 28 50 72 6f 63 50 | 74 72 28 40 75 73 65 72 |or(ProcP|tr(@user|
|00002130| 52 6f 75 74 69 6e 65 29 | 2c 20 75 70 70 4d 65 72 |Routine)|, uppMer|
|00002140| 63 75 74 69 6f 43 61 6c | 6c 62 61 63 6b 50 72 6f |cutioCal|lbackPro|
|00002150| 63 49 6e 66 6f 2c 20 47 | 65 74 43 75 72 72 65 6e |cInfo, G|etCurren|
|00002160| 74 41 72 63 68 69 74 65 | 63 74 75 72 65 29 3b 0d |tArchite|cture);.|
|00002170| 09 09 7b 24 45 4e 44 43 | 7d 0d 09 09 45 4e 44 3b |..{$ENDC|}...END;|
|00002180| 0d 0d 09 0d 09 50 52 4f | 43 45 44 55 52 45 20 43 |.....PRO|CEDURE C|
|00002190| 61 6c 6c 4d 44 45 46 20 | 28 6d 65 73 73 61 67 65 |allMDEF |(message|
|000021a0| 3a 20 69 6e 74 65 67 65 | 72 3b 20 74 68 65 4d 65 |: intege|r; theMe|
|000021b0| 6e 75 3a 20 4d 65 6e 75 | 48 61 6e 64 6c 65 3b 20 |nu: Menu|Handle; |
|000021c0| 56 41 52 20 6d 65 6e 75 | 52 65 63 74 3a 20 52 65 |VAR menu|Rect: Re|
|000021d0| 63 74 3b 20 68 69 74 50 | 74 3a 20 50 6f 69 6e 74 |ct; hitP|t: Point|
|000021e0| 3b 20 56 41 52 20 77 68 | 69 63 68 49 74 65 6d 3a |; VAR wh|ichItem:|
|000021f0| 20 69 6e 74 65 67 65 72 | 3b 20 64 65 66 50 72 6f | integer|; defPro|
|00002200| 63 3a 20 50 72 6f 63 50 | 74 72 29 3b 0d 09 7b 78 |c: ProcP|tr);..{x|
|00002210| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00002220| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00002230| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00002240| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00002250| 78 78 78 78 78 78 78 78 | 78 78 7d 0d 09 7b 78 09 |xxxxxxxx|xx}..{x.|
|00002260| 53 69 6d 70 6c 65 20 69 | 6e 6c 69 6e 65 20 61 73 |Simple i|nline as|
|00002270| 73 65 6d 62 6c 79 20 63 | 6f 64 65 20 74 6f 20 63 |sembly c|ode to c|
|00002280| 61 6c 6c 20 61 6e 20 4d | 44 45 46 2c 20 63 6f 75 |all an M|DEF, cou|
|00002290| 72 74 65 73 79 20 6f 66 | 20 4a 6f 68 6e 20 43 61 |rtesy of| John Ca|
|000022a0| 76 61 6c 6c 69 6e 6f 2e | 20 7d 0d 09 7b 78 78 78 |vallino.| }..{xxx|
|000022b0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000022c0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000022d0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000022e0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000022f0| 78 78 78 78 78 78 78 78 | 7d 0d 7b 24 49 46 43 20 |xxxxxxxx|}.{$IFC |
|00002300| 4e 4f 54 20 50 4f 57 45 | 52 50 43 7d 0d 09 49 4e |NOT POWE|RPC}..IN|
|00002310| 4c 49 4e 45 0d 09 09 24 | 32 30 35 46 2c 09 7b 20 |LINE...$|205F,.{ |
|00002320| 6d 6f 76 65 2e 6c 20 28 | 53 50 29 2b 2c 41 30 20 |move.l (|SP)+,A0 |
|00002330| 7d 0d 09 09 24 34 45 39 | 30 3b 09 7b 20 6a 73 72 |}...$4E9|0;.{ jsr|
|00002340| 20 28 41 30 29 20 7d 0d | 7b 24 45 4c 53 45 43 7d | (A0) }.|{$ELSEC}|
|00002350| 0d 09 56 41 52 0d 09 09 | 6d 65 6e 75 50 72 6f 63 |..VAR...|menuProc|
|00002360| 55 50 50 20 3a 20 4d 65 | 6e 75 44 65 66 55 50 50 |UPP : Me|nuDefUPP|
|00002370| 3b 0d 09 42 45 47 49 4e | 0d 09 09 6d 65 6e 75 50 |;..BEGIN|...menuP|
|00002380| 72 6f 63 55 50 50 20 3a | 3d 20 4d 65 6e 75 44 65 |rocUPP :|= MenuDe|
|00002390| 66 55 50 50 28 4e 65 77 | 52 6f 75 74 69 6e 65 44 |fUPP(New|RoutineD|
|000023a0| 65 73 63 72 69 70 74 6f | 72 28 64 65 66 50 72 6f |escripto|r(defPro|
|000023b0| 63 2c 20 75 70 70 4d 65 | 6e 75 44 65 66 50 72 6f |c, uppMe|nuDefPro|
|000023c0| 63 49 6e 66 6f 2c 20 6b | 4d 36 38 6b 49 53 41 29 |cInfo, k|M68kISA)|
|000023d0| 29 3b 0d 09 09 43 61 6c | 6c 4d 65 6e 75 44 65 66 |);...Cal|lMenuDef|
|000023e0| 50 72 6f 63 28 6d 65 73 | 73 61 67 65 2c 20 74 68 |Proc(mes|sage, th|
|000023f0| 65 4d 65 6e 75 2c 20 6d | 65 6e 75 52 65 63 74 2c |eMenu, m|enuRect,|
|00002400| 20 68 69 74 50 74 2c 20 | 77 68 69 63 68 49 74 65 | hitPt, |whichIte|
|00002410| 6d 2c 20 6d 65 6e 75 50 | 72 6f 63 55 50 50 29 3b |m, menuP|rocUPP);|
|00002420| 09 0d 09 09 44 69 73 70 | 6f 73 65 52 6f 75 74 69 |....Disp|oseRouti|
|00002430| 6e 65 44 65 73 63 72 69 | 70 74 6f 72 28 6d 65 6e |neDescri|ptor(men|
|00002440| 75 50 72 6f 63 55 50 50 | 29 3b 0d 09 45 4e 44 3b |uProcUPP|);..END;|
|00002450| 0d 7b 24 45 4e 44 43 7d | 0d 0d 0d 0d 09 50 52 4f |.{$ENDC}|.....PRO|
|00002460| 43 45 44 55 52 45 20 4d | 44 45 46 5f 53 65 74 4d |CEDURE M|DEF_SetM|
|00002470| 65 6e 75 50 72 65 66 73 | 20 28 6d 65 6e 75 3a 20 |enuPrefs| (menu: |
|00002480| 4d 65 6e 75 48 61 6e 64 | 6c 65 3b 20 70 50 72 65 |MenuHand|le; pPre|
|00002490| 66 73 3a 20 4d 65 6e 75 | 50 72 65 66 73 50 74 72 |fs: Menu|PrefsPtr|
|000024a0| 29 3b 0d 09 09 56 41 52 | 0d 09 09 09 73 74 61 74 |);...VAR|....stat|
|000024b0| 65 3a 20 53 69 67 6e 65 | 64 42 79 74 65 3b 0d 09 |e: Signe|dByte;..|
|000024c0| 09 09 70 72 6f 63 3a 20 | 48 61 6e 64 6c 65 3b 0d |..proc: |Handle;.|
|000024d0| 09 09 09 64 75 6d 6d 79 | 52 65 63 74 3a 20 52 65 |...dummy|Rect: Re|
|000024e0| 63 74 3b 0d 09 09 09 64 | 75 6d 6d 79 49 6e 74 3a |ct;....d|ummyInt:|
|000024f0| 20 69 6e 74 65 67 65 72 | 3b 0d 09 42 45 47 49 4e | integer|;..BEGIN|
|00002500| 0d 09 09 70 72 6f 63 20 | 3a 3d 20 6d 65 6e 75 5e |...proc |:= menu^|
|00002510| 5e 2e 6d 65 6e 75 50 72 | 6f 63 3b 0d 09 09 73 74 |^.menuPr|oc;...st|
|00002520| 61 74 65 20 3a 3d 20 48 | 47 65 74 53 74 61 74 65 |ate := H|GetState|
|00002530| 28 70 72 6f 63 29 3b 0d | 09 09 48 4c 6f 63 6b 28 |(proc);.|..HLock(|
|00002540| 70 72 6f 63 29 3b 0d 09 | 09 64 75 6d 6d 79 49 6e |proc);..|.dummyIn|
|00002550| 74 20 3a 3d 20 30 3b 0d | 09 09 64 75 6d 6d 79 52 |t := 0;.|..dummyR|
|00002560| 65 63 74 2e 74 6f 70 4c | 65 66 74 20 3a 3d 20 50 |ect.topL|eft := P|
|00002570| 6f 69 6e 74 28 6c 6f 6e | 67 69 6e 74 28 30 29 29 |oint(lon|gint(0))|
|00002580| 3b 0d 09 09 64 75 6d 6d | 79 52 65 63 74 2e 62 6f |;...dumm|yRect.bo|
|00002590| 74 52 69 67 68 74 20 3a | 3d 20 50 6f 69 6e 74 28 |tRight :|= Point(|
|000025a0| 6c 6f 6e 67 69 6e 74 28 | 30 29 29 3b 0d 09 09 43 |longint(|0));...C|
|000025b0| 61 6c 6c 4d 44 45 46 28 | 73 65 74 50 72 65 66 73 |allMDEF(|setPrefs|
|000025c0| 4d 73 67 2c 20 6d 65 6e | 75 2c 20 64 75 6d 6d 79 |Msg, men|u, dummy|
|000025d0| 52 65 63 74 2c 20 50 6f | 69 6e 74 28 70 50 72 65 |Rect, Po|int(pPre|
|000025e0| 66 73 29 2c 20 64 75 6d | 6d 79 49 6e 74 2c 20 70 |fs), dum|myInt, p|
|000025f0| 72 6f 63 5e 29 3b 0d 09 | 09 48 53 65 74 53 74 61 |roc^);..|.HSetSta|
|00002600| 74 65 28 70 72 6f 63 2c | 20 73 74 61 74 65 29 3b |te(proc,| state);|
|00002610| 0d 09 09 43 61 6c 63 4d | 65 6e 75 53 69 7a 65 28 |...CalcM|enuSize(|
|00002620| 6d 65 6e 75 29 3b 09 7b | 20 73 69 7a 65 20 6d 61 |menu);.{| size ma|
|00002630| 79 20 68 61 76 65 20 63 | 68 61 6e 67 65 64 20 62 |y have c|hanged b|
|00002640| 61 73 65 64 20 6f 6e 20 | 6e 65 77 20 50 72 65 66 |ased on |new Pref|
|00002650| 73 20 7d 0d 09 45 4e 44 | 3b 0d 0d 0d 09 50 52 4f |s }..END|;....PRO|
|00002660| 43 45 44 55 52 45 20 4d | 44 45 46 5f 53 65 74 4b |CEDURE M|DEF_SetK|
|00002670| 65 79 47 72 61 70 68 69 | 63 73 50 72 65 66 65 72 |eyGraphi|csPrefer|
|00002680| 65 6e 63 65 20 28 6d 65 | 6e 75 3a 20 4d 65 6e 75 |ence (me|nu: Menu|
|00002690| 48 61 6e 64 6c 65 3b 20 | 70 72 65 66 65 72 47 72 |Handle; |preferGr|
|000026a0| 61 70 68 69 63 73 3a 20 | 62 6f 6f 6c 65 61 6e 29 |aphics: |boolean)|
|000026b0| 3b 0d 09 09 56 41 52 0d | 09 09 09 73 74 61 74 65 |;...VAR.|...state|
|000026c0| 3a 20 53 69 67 6e 65 64 | 42 79 74 65 3b 0d 09 09 |: Signed|Byte;...|
|000026d0| 09 70 72 6f 63 3a 20 48 | 61 6e 64 6c 65 3b 0d 09 |.proc: H|andle;..|
|000026e0| 09 09 64 75 6d 6d 79 52 | 65 63 74 3a 20 52 65 63 |..dummyR|ect: Rec|
|000026f0| 74 3b 0d 09 09 09 64 75 | 6d 6d 79 50 74 3a 20 50 |t;....du|mmyPt: P|
|00002700| 6f 69 6e 74 3b 0d 09 09 | 09 64 75 6d 6d 79 49 6e |oint;...|.dummyIn|
|00002710| 74 3a 20 69 6e 74 65 67 | 65 72 3b 0d 09 42 45 47 |t: integ|er;..BEG|
|00002720| 49 4e 0d 09 09 70 72 6f | 63 20 3a 3d 20 6d 65 6e |IN...pro|c := men|
|00002730| 75 5e 5e 2e 6d 65 6e 75 | 50 72 6f 63 3b 0d 09 09 |u^^.menu|Proc;...|
|00002740| 73 74 61 74 65 20 3a 3d | 20 48 47 65 74 53 74 61 |state :=| HGetSta|
|00002750| 74 65 28 70 72 6f 63 29 | 3b 0d 09 09 48 4c 6f 63 |te(proc)|;...HLoc|
|00002760| 6b 28 70 72 6f 63 29 3b | 0d 09 09 64 75 6d 6d 79 |k(proc);|...dummy|
|00002770| 50 74 2e 68 20 3a 3d 20 | 42 79 74 65 28 70 72 65 |Pt.h := |Byte(pre|
|00002780| 66 65 72 47 72 61 70 68 | 69 63 73 29 3b 0d 09 09 |ferGraph|ics);...|
|00002790| 64 75 6d 6d 79 50 74 2e | 76 20 3a 3d 20 30 3b 0d |dummyPt.|v := 0;.|
|000027a0| 09 09 43 61 6c 6c 4d 44 | 45 46 28 73 65 74 4b 65 |..CallMD|EF(setKe|
|000027b0| 79 47 72 61 70 68 69 63 | 73 4d 73 67 2c 20 6d 65 |yGraphic|sMsg, me|
|000027c0| 6e 75 2c 20 64 75 6d 6d | 79 52 65 63 74 2c 20 64 |nu, dumm|yRect, d|
|000027d0| 75 6d 6d 79 50 74 2c 20 | 64 75 6d 6d 79 49 6e 74 |ummyPt, |dummyInt|
|000027e0| 2c 20 70 72 6f 63 5e 29 | 3b 0d 09 09 48 53 65 74 |, proc^)|;...HSet|
|000027f0| 53 74 61 74 65 28 70 72 | 6f 63 2c 20 73 74 61 74 |State(pr|oc, stat|
|00002800| 65 29 3b 0d 09 45 4e 44 | 3b 0d 0d 0d 09 50 52 4f |e);..END|;....PRO|
|00002810| 43 45 44 55 52 45 20 4d | 44 45 46 5f 53 65 74 53 |CEDURE M|DEF_SetS|
|00002820| 6d 61 6c 6c 49 63 6f 6e | 49 44 50 72 65 66 65 72 |mallIcon|IDPrefer|
|00002830| 65 6e 63 65 20 28 6d 65 | 6e 75 3a 20 4d 65 6e 75 |ence (me|nu: Menu|
|00002840| 48 61 6e 64 6c 65 3b 20 | 69 63 6f 6e 73 53 6d 61 |Handle; |iconsSma|
|00002850| 6c 6c 41 62 6f 76 65 49 | 44 3a 20 69 6e 74 65 67 |llAboveI|D: integ|
|00002860| 65 72 29 3b 0d 09 09 56 | 41 52 0d 09 09 09 73 74 |er);...V|AR....st|
|00002870| 61 74 65 3a 20 53 69 67 | 6e 65 64 42 79 74 65 3b |ate: Sig|nedByte;|
|00002880| 0d 09 09 09 70 72 6f 63 | 3a 20 48 61 6e 64 6c 65 |....proc|: Handle|
|00002890| 3b 0d 09 09 09 64 75 6d | 6d 79 52 65 63 74 3a 20 |;....dum|myRect: |
|000028a0| 52 65 63 74 3b 0d 09 09 | 09 64 75 6d 6d 79 50 74 |Rect;...|.dummyPt|
|000028b0| 3a 20 50 6f 69 6e 74 3b | 0d 09 42 45 47 49 4e 0d |: Point;|..BEGIN.|
|000028c0| 09 09 70 72 6f 63 20 3a | 3d 20 6d 65 6e 75 5e 5e |..proc :|= menu^^|
|000028d0| 2e 6d 65 6e 75 50 72 6f | 63 3b 0d 09 09 73 74 61 |.menuPro|c;...sta|
|000028e0| 74 65 20 3a 3d 20 48 47 | 65 74 53 74 61 74 65 28 |te := HG|etState(|
|000028f0| 70 72 6f 63 29 3b 0d 09 | 09 48 4c 6f 63 6b 28 70 |proc);..|.HLock(p|
|00002900| 72 6f 63 29 3b 0d 09 09 | 64 75 6d 6d 79 50 74 20 |roc);...|dummyPt |
|00002910| 3a 3d 20 50 6f 69 6e 74 | 28 6c 6f 6e 67 69 6e 74 |:= Point|(longint|
|00002920| 28 30 29 29 3b 0d 09 09 | 64 75 6d 6d 79 52 65 63 |(0));...|dummyRec|
|00002930| 74 2e 74 6f 70 4c 65 66 | 74 20 3a 3d 20 50 6f 69 |t.topLef|t := Poi|
|00002940| 6e 74 28 6c 6f 6e 67 69 | 6e 74 28 30 29 29 3b 0d |nt(longi|nt(0));.|
|00002950| 09 09 64 75 6d 6d 79 52 | 65 63 74 2e 62 6f 74 52 |..dummyR|ect.botR|
|00002960| 69 67 68 74 20 3a 3d 20 | 50 6f 69 6e 74 28 6c 6f |ight := |Point(lo|
|00002970| 6e 67 69 6e 74 28 30 29 | 29 3b 0d 09 09 43 61 6c |ngint(0)|);...Cal|
|00002980| 6c 4d 44 45 46 28 73 65 | 74 53 6d 61 6c 6c 49 63 |lMDEF(se|tSmallIc|
|00002990| 6f 6e 49 44 4d 73 67 2c | 20 6d 65 6e 75 2c 20 64 |onIDMsg,| menu, d|
|000029a0| 75 6d 6d 79 52 65 63 74 | 2c 20 64 75 6d 6d 79 50 |ummyRect|, dummyP|
|000029b0| 74 2c 20 69 63 6f 6e 73 | 53 6d 61 6c 6c 41 62 6f |t, icons|SmallAbo|
|000029c0| 76 65 49 44 2c 20 70 72 | 6f 63 5e 29 3b 0d 09 09 |veID, pr|oc^);...|
|000029d0| 48 53 65 74 53 74 61 74 | 65 28 70 72 6f 63 2c 20 |HSetStat|e(proc, |
|000029e0| 73 74 61 74 65 29 3b 0d | 09 45 4e 44 3b 0d 0d 0d |state);.|.END;...|
|000029f0| 7b 09 50 52 4f 43 45 44 | 55 52 45 20 4d 44 45 46 |{.PROCED|URE MDEF|
|00002a00| 5f 53 65 74 43 61 6c 6c | 62 61 63 6b 50 72 6f 63 |_SetCall|backProc|
|00002a10| 20 28 6d 65 6e 75 3a 20 | 4d 65 6e 75 48 61 6e 64 | (menu: |MenuHand|
|00002a20| 6c 65 3b 20 74 68 65 50 | 72 6f 63 3a 20 50 72 6f |le; theP|roc: Pro|
|00002a30| 63 50 74 72 29 3b 7d 0d | 09 50 52 4f 43 45 44 55 |cPtr);}.|.PROCEDU|
|00002a40| 52 45 20 4d 44 45 46 5f | 53 65 74 43 61 6c 6c 62 |RE MDEF_|SetCallb|
|00002a50| 61 63 6b 50 72 6f 63 20 | 28 6d 65 6e 75 3a 20 4d |ackProc |(menu: M|
|00002a60| 65 6e 75 48 61 6e 64 6c | 65 3b 20 74 68 65 50 72 |enuHandl|e; thePr|
|00002a70| 6f 63 3a 20 4d 65 72 63 | 75 74 69 6f 43 61 6c 6c |oc: Merc|utioCall|
|00002a80| 62 61 63 6b 55 50 50 29 | 3b 0d 09 09 56 41 52 0d |backUPP)|;...VAR.|
|00002a90| 09 09 09 73 74 61 74 65 | 3a 20 53 69 67 6e 65 64 |...state|: Signed|
|00002aa0| 42 79 74 65 3b 0d 09 09 | 09 70 72 6f 63 3a 20 48 |Byte;...|.proc: H|
|00002ab0| 61 6e 64 6c 65 3b 0d 09 | 09 09 64 75 6d 6d 79 52 |andle;..|..dummyR|
|00002ac0| 65 63 74 3a 20 52 65 63 | 74 3b 0d 09 09 09 64 75 |ect: Rec|t;....du|
|00002ad0| 6d 6d 79 49 6e 74 3a 20 | 69 6e 74 65 67 65 72 3b |mmyInt: |integer;|
|00002ae0| 0d 09 42 45 47 49 4e 0d | 09 09 70 72 6f 63 20 3a |..BEGIN.|..proc :|
|00002af0| 3d 20 6d 65 6e 75 5e 5e | 2e 6d 65 6e 75 50 72 6f |= menu^^|.menuPro|
|00002b00| 63 3b 0d 09 09 73 74 61 | 74 65 20 3a 3d 20 48 47 |c;...sta|te := HG|
|00002b10| 65 74 53 74 61 74 65 28 | 70 72 6f 63 29 3b 0d 09 |etState(|proc);..|
|00002b20| 09 48 4c 6f 63 6b 28 70 | 72 6f 63 29 3b 0d 09 09 |.HLock(p|roc);...|
|00002b30| 64 75 6d 6d 79 49 6e 74 | 20 3a 3d 20 30 3b 0d 09 |dummyInt| := 0;..|
|00002b40| 09 64 75 6d 6d 79 52 65 | 63 74 2e 74 6f 70 4c 65 |.dummyRe|ct.topLe|
|00002b50| 66 74 20 3a 3d 20 50 6f | 69 6e 74 28 6c 6f 6e 67 |ft := Po|int(long|
|00002b60| 69 6e 74 28 30 29 29 3b | 0d 09 09 64 75 6d 6d 79 |int(0));|...dummy|
|00002b70| 52 65 63 74 2e 62 6f 74 | 52 69 67 68 74 20 3a 3d |Rect.bot|Right :=|
|00002b80| 20 50 6f 69 6e 74 28 6c | 6f 6e 67 69 6e 74 28 30 | Point(l|ongint(0|
|00002b90| 29 29 3b 0d 09 09 43 61 | 6c 6c 4d 44 45 46 28 73 |));...Ca|llMDEF(s|
|00002ba0| 65 74 43 61 6c 6c 62 61 | 63 6b 4d 73 67 2c 20 6d |etCallba|ckMsg, m|
|00002bb0| 65 6e 75 2c 20 64 75 6d | 6d 79 52 65 63 74 2c 20 |enu, dum|myRect, |
|00002bc0| 50 6f 69 6e 74 28 74 68 | 65 50 72 6f 63 29 2c 20 |Point(th|eProc), |
|00002bd0| 64 75 6d 6d 79 49 6e 74 | 2c 20 70 72 6f 63 5e 29 |dummyInt|, proc^)|
|00002be0| 3b 0d 09 09 0d 09 09 48 | 53 65 74 53 74 61 74 65 |;......H|SetState|
|00002bf0| 28 70 72 6f 63 2c 20 73 | 74 61 74 65 29 3b 0d 09 |(proc, s|tate);..|
|00002c00| 45 4e 44 3b 0d 0d 0d 0d | 09 50 52 4f 43 45 44 55 |END;....|.PROCEDU|
|00002c10| 52 45 20 4d 44 45 46 5f | 53 74 72 69 70 43 75 73 |RE MDEF_|StripCus|
|00002c20| 74 6f 6d 4d 65 6e 75 44 | 61 74 61 20 28 6d 65 6e |tomMenuD|ata (men|
|00002c30| 75 3a 20 4d 65 6e 75 48 | 61 6e 64 6c 65 29 3b 0d |u: MenuH|andle);.|
|00002c40| 09 09 56 41 52 0d 09 09 | 09 73 74 61 74 65 3a 20 |..VAR...|.state: |
|00002c50| 53 69 67 6e 65 64 42 79 | 74 65 3b 0d 09 09 09 70 |SignedBy|te;....p|
|00002c60| 72 6f 63 3a 20 48 61 6e | 64 6c 65 3b 0d 09 09 09 |roc: Han|dle;....|
|00002c70| 64 75 6d 6d 79 50 74 3a | 20 50 6f 69 6e 74 3b 0d |dummyPt:| Point;.|
|00002c80| 09 09 09 64 75 6d 6d 79 | 49 74 65 6d 3a 20 69 6e |...dummy|Item: in|
|00002c90| 74 65 67 65 72 3b 0d 09 | 09 09 64 75 6d 6d 79 52 |teger;..|..dummyR|
|00002ca0| 65 63 74 3a 20 52 65 63 | 74 3b 0d 09 42 45 47 49 |ect: Rec|t;..BEGI|
|00002cb0| 4e 0d 09 09 64 75 6d 6d | 79 50 74 2e 68 20 3a 3d |N...dumm|yPt.h :=|
|00002cc0| 20 30 3b 0d 09 09 64 75 | 6d 6d 79 50 74 2e 76 20 | 0;...du|mmyPt.v |
|00002cd0| 3a 3d 20 30 3b 0d 09 09 | 70 72 6f 63 20 3a 3d 20 |:= 0;...|proc := |
|00002ce0| 6d 65 6e 75 5e 5e 2e 6d | 65 6e 75 50 72 6f 63 3b |menu^^.m|enuProc;|
|00002cf0| 0d 09 09 73 74 61 74 65 | 20 3a 3d 20 48 47 65 74 |...state| := HGet|
|00002d00| 53 74 61 74 65 28 70 72 | 6f 63 29 3b 0d 09 09 48 |State(pr|oc);...H|
|00002d10| 4c 6f 63 6b 28 70 72 6f | 63 29 3b 0d 09 09 43 61 |Lock(pro|c);...Ca|
|00002d20| 6c 6c 4d 44 45 46 28 73 | 74 72 69 70 43 75 73 74 |llMDEF(s|tripCust|
|00002d30| 6f 6d 44 61 74 61 4d 73 | 67 2c 20 6d 65 6e 75 2c |omDataMs|g, menu,|
|00002d40| 20 64 75 6d 6d 79 52 65 | 63 74 2c 20 64 75 6d 6d | dummyRe|ct, dumm|
|00002d50| 79 50 74 2c 20 64 75 6d | 6d 79 49 74 65 6d 2c 20 |yPt, dum|myItem, |
|00002d60| 70 72 6f 63 5e 29 3b 0d | 09 09 48 53 65 74 53 74 |proc^);.|..HSetSt|
|00002d70| 61 74 65 28 70 72 6f 63 | 2c 20 73 74 61 74 65 29 |ate(proc|, state)|
|00002d80| 3b 0d 09 45 4e 44 3b 0d | 0d 0d 0d 09 50 52 4f 43 |;..END;.|....PROC|
|00002d90| 45 44 55 52 45 20 4d 44 | 45 46 5f 44 72 61 77 49 |EDURE MD|EF_DrawI|
|00002da0| 74 65 6d 20 28 6d 65 6e | 75 3a 20 4d 65 6e 75 48 |tem (men|u: MenuH|
|00002db0| 61 6e 64 6c 65 3b 20 69 | 74 65 6d 3a 20 69 6e 74 |andle; i|tem: int|
|00002dc0| 65 67 65 72 3b 20 64 65 | 73 74 52 65 63 74 3a 20 |eger; de|stRect: |
|00002dd0| 52 65 63 74 29 3b 0d 09 | 09 56 41 52 0d 09 09 09 |Rect);..|.VAR....|
|00002de0| 73 74 61 74 65 3a 20 53 | 69 67 6e 65 64 42 79 74 |state: S|ignedByt|
|00002df0| 65 3b 0d 09 09 09 70 72 | 6f 63 3a 20 48 61 6e 64 |e;....pr|oc: Hand|
|00002e00| 6c 65 3b 0d 09 09 09 64 | 75 6d 6d 79 50 74 3a 20 |le;....d|ummyPt: |
|00002e10| 50 6f 69 6e 74 3b 0d 09 | 42 45 47 49 4e 0d 09 09 |Point;..|BEGIN...|
|00002e20| 64 75 6d 6d 79 50 74 2e | 68 20 3a 3d 20 30 3b 0d |dummyPt.|h := 0;.|
|00002e30| 09 09 64 75 6d 6d 79 50 | 74 2e 76 20 3a 3d 20 30 |..dummyP|t.v := 0|
|00002e40| 3b 0d 09 09 70 72 6f 63 | 20 3a 3d 20 6d 65 6e 75 |;...proc| := menu|
|00002e50| 5e 5e 2e 6d 65 6e 75 50 | 72 6f 63 3b 0d 09 09 73 |^^.menuP|roc;...s|
|00002e60| 74 61 74 65 20 3a 3d 20 | 48 47 65 74 53 74 61 74 |tate := |HGetStat|
|00002e70| 65 28 70 72 6f 63 29 3b | 0d 09 09 48 4c 6f 63 6b |e(proc);|...HLock|
|00002e80| 28 70 72 6f 63 29 3b 0d | 09 09 43 61 6c 6c 4d 44 |(proc);.|..CallMD|
|00002e90| 45 46 28 6d 44 72 61 77 | 49 74 65 6d 4d 73 67 2c |EF(mDraw|ItemMsg,|
|00002ea0| 20 6d 65 6e 75 2c 20 64 | 65 73 74 52 65 63 74 2c | menu, d|estRect,|
|00002eb0| 20 64 75 6d 6d 79 50 74 | 2c 20 69 74 65 6d 2c 20 | dummyPt|, item, |
|00002ec0| 70 72 6f 63 5e 29 3b 0d | 09 09 48 53 65 74 53 74 |proc^);.|..HSetSt|
|00002ed0| 61 74 65 28 70 72 6f 63 | 2c 20 73 74 61 74 65 29 |ate(proc|, state)|
|00002ee0| 3b 0d 09 45 4e 44 3b 0d | 0d 0d 0d 09 50 52 4f 43 |;..END;.|....PROC|
|00002ef0| 45 44 55 52 45 20 4d 44 | 45 46 5f 44 72 61 77 49 |EDURE MD|EF_DrawI|
|00002f00| 74 65 6d 53 74 61 74 65 | 20 28 6d 65 6e 75 3a 20 |temState| (menu: |
|00002f10| 4d 65 6e 75 48 61 6e 64 | 6c 65 3b 20 69 74 65 6d |MenuHand|le; item|
|00002f20| 3a 20 69 6e 74 65 67 65 | 72 3b 20 64 65 73 74 52 |: intege|r; destR|
|00002f30| 65 63 74 3a 20 52 65 63 | 74 3b 20 68 69 6c 69 74 |ect: Rec|t; hilit|
|00002f40| 65 64 2c 20 65 6e 61 62 | 6c 65 64 3a 20 62 6f 6f |ed, enab|led: boo|
|00002f50| 6c 65 61 6e 29 3b 0d 09 | 09 56 41 52 0d 09 09 09 |lean);..|.VAR....|
|00002f60| 73 74 61 74 65 3a 20 53 | 69 67 6e 65 64 42 79 74 |state: S|ignedByt|
|00002f70| 65 3b 0d 09 09 09 70 72 | 6f 63 3a 20 48 61 6e 64 |e;....pr|oc: Hand|
|00002f80| 6c 65 3b 0d 09 09 09 64 | 75 6d 6d 79 50 74 3a 20 |le;....d|ummyPt: |
|00002f90| 50 6f 69 6e 74 3b 0d 09 | 42 45 47 49 4e 0d 09 09 |Point;..|BEGIN...|
|00002fa0| 70 72 6f 63 20 3a 3d 20 | 6d 65 6e 75 5e 5e 2e 6d |proc := |menu^^.m|
|00002fb0| 65 6e 75 50 72 6f 63 3b | 0d 09 09 73 74 61 74 65 |enuProc;|...state|
|00002fc0| 20 3a 3d 20 48 47 65 74 | 53 74 61 74 65 28 70 72 | := HGet|State(pr|
|00002fd0| 6f 63 29 3b 0d 09 09 48 | 4c 6f 63 6b 28 70 72 6f |oc);...H|Lock(pro|
|00002fe0| 63 29 3b 0d 09 09 64 75 | 6d 6d 79 50 74 2e 68 20 |c);...du|mmyPt.h |
|00002ff0| 3a 3d 20 42 79 74 65 28 | 68 69 6c 69 74 65 64 29 |:= Byte(|hilited)|
|00003000| 3b 0d 09 09 64 75 6d 6d | 79 50 74 2e 76 20 3a 3d |;...dumm|yPt.v :=|
|00003010| 20 42 79 74 65 28 65 6e | 61 62 6c 65 64 29 3b 0d | Byte(en|abled);.|
|00003020| 09 09 43 61 6c 6c 4d 44 | 45 46 28 6d 44 72 61 77 |..CallMD|EF(mDraw|
|00003030| 49 74 65 6d 53 74 61 74 | 65 4d 73 67 2c 20 6d 65 |ItemStat|eMsg, me|
|00003040| 6e 75 2c 20 64 65 73 74 | 52 65 63 74 2c 20 64 75 |nu, dest|Rect, du|
|00003050| 6d 6d 79 50 74 2c 20 69 | 74 65 6d 2c 20 70 72 6f |mmyPt, i|tem, pro|
|00003060| 63 5e 29 3b 0d 09 09 48 | 53 65 74 53 74 61 74 65 |c^);...H|SetState|
|00003070| 28 70 72 6f 63 2c 20 73 | 74 61 74 65 29 3b 0d 09 |(proc, s|tate);..|
|00003080| 45 4e 44 3b 0d 0d 0d 0d | 09 50 52 4f 43 45 44 55 |END;....|.PROCEDU|
|00003090| 52 45 20 4d 44 45 46 5f | 43 61 6c 63 49 74 65 6d |RE MDEF_|CalcItem|
|000030a0| 53 69 7a 65 20 28 6d 65 | 6e 75 3a 20 4d 65 6e 75 |Size (me|nu: Menu|
|000030b0| 48 61 6e 64 6c 65 3b 20 | 69 74 65 6d 3a 20 69 6e |Handle; |item: in|
|000030c0| 74 65 67 65 72 3b 20 56 | 41 52 20 74 68 65 52 65 |teger; V|AR theRe|
|000030d0| 63 74 3a 20 52 65 63 74 | 29 3b 0d 09 09 56 41 52 |ct: Rect|);...VAR|
|000030e0| 0d 09 09 09 73 74 61 74 | 65 3a 20 53 69 67 6e 65 |....stat|e: Signe|
|000030f0| 64 42 79 74 65 3b 0d 09 | 09 09 70 72 6f 63 3a 20 |dByte;..|..proc: |
|00003100| 48 61 6e 64 6c 65 3b 0d | 09 09 09 64 75 6d 6d 79 |Handle;.|...dummy|
|00003110| 50 74 3a 20 50 6f 69 6e | 74 3b 0d 09 42 45 47 49 |Pt: Poin|t;..BEGI|
|00003120| 4e 0d 09 09 64 75 6d 6d | 79 50 74 2e 68 20 3a 3d |N...dumm|yPt.h :=|
|00003130| 20 30 3b 0d 09 09 64 75 | 6d 6d 79 50 74 2e 76 20 | 0;...du|mmyPt.v |
|00003140| 3a 3d 20 30 3b 0d 09 09 | 70 72 6f 63 20 3a 3d 20 |:= 0;...|proc := |
|00003150| 6d 65 6e 75 5e 5e 2e 6d | 65 6e 75 50 72 6f 63 3b |menu^^.m|enuProc;|
|00003160| 0d 09 09 73 74 61 74 65 | 20 3a 3d 20 48 47 65 74 |...state| := HGet|
|00003170| 53 74 61 74 65 28 70 72 | 6f 63 29 3b 0d 09 09 48 |State(pr|oc);...H|
|00003180| 4c 6f 63 6b 28 70 72 6f | 63 29 3b 0d 09 09 43 61 |Lock(pro|c);...Ca|
|00003190| 6c 6c 4d 44 45 46 28 6d | 43 61 6c 63 49 74 65 6d |llMDEF(m|CalcItem|
|000031a0| 4d 73 67 2c 20 6d 65 6e | 75 2c 20 74 68 65 52 65 |Msg, men|u, theRe|
|000031b0| 63 74 2c 20 64 75 6d 6d | 79 50 74 2c 20 69 74 65 |ct, dumm|yPt, ite|
|000031c0| 6d 2c 20 70 72 6f 63 5e | 29 3b 0d 09 09 48 53 65 |m, proc^|);...HSe|
|000031d0| 74 53 74 61 74 65 28 70 | 72 6f 63 2c 20 73 74 61 |tState(p|roc, sta|
|000031e0| 74 65 29 3b 0d 09 45 4e | 44 3b 0d 0d 0d 0d 09 46 |te);..EN|D;.....F|
|000031f0| 55 4e 43 54 49 4f 4e 20 | 4d 44 45 46 5f 49 73 43 |UNCTION |MDEF_IsC|
|00003200| 75 73 74 6f 6d 20 28 6d | 65 6e 75 3a 20 4d 65 6e |ustom (m|enu: Men|
|00003210| 75 48 61 6e 64 6c 65 29 | 3a 20 62 6f 6f 6c 65 61 |uHandle)|: boolea|
|00003220| 6e 3b 0d 09 7b 78 78 78 | 78 78 78 78 78 78 78 78 |n;..{xxx|xxxxxxxx|
|00003230| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00003240| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00003250| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00003260| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|00003270| 7d 0d 09 7b 78 7d 0d 09 | 7b 78 09 4d 44 45 46 5f |}..{x}..|{x.MDEF_|
|00003280| 49 73 43 75 73 74 6f 6d | 20 72 65 74 75 72 6e 73 |IsCustom| returns|
|00003290| 20 74 72 75 65 20 69 66 | 20 68 4d 65 6e 75 20 69 | true if| hMenu i|
|000032a0| 73 20 63 6f 6e 74 72 6f | 6c 6c 65 64 20 62 79 20 |s contro|lled by |
|000032b0| 61 20 63 75 73 74 6f 6d | 20 4d 44 45 46 2e 20 54 |a custom| MDEF. T|
|000032c0| 68 69 73 20 72 65 6c 69 | 65 73 20 6f 6e 20 6d 79 |his reli|es on my|
|000032d0| 7d 0d 09 7b 78 09 63 6f | 6e 76 65 6e 74 69 6f 6e |}..{x.co|nvention|
|000032e0| 20 6f 66 20 72 65 74 75 | 72 6e 69 6e 67 20 74 68 | of retu|rning th|
|000032f0| 65 20 63 75 73 74 6f 6d | 44 65 66 50 72 6f 63 53 |e custom|DefProcS|
|00003300| 69 67 20 63 6f 6e 73 74 | 61 6e 74 20 69 6e 20 74 |ig const|ant in t|
|00003310| 68 65 20 52 65 63 74 20 | 70 61 72 61 6d 65 74 65 |he Rect |paramete|
|00003320| 72 3a 20 74 68 69 73 20 | 6f 62 74 75 73 65 7d 0d |r: this |obtuse}.|
|00003330| 09 7b 78 09 63 6f 6e 76 | 65 6e 74 69 6f 6e 20 73 |.{x.conv|ention s|
|00003340| 68 6f 75 6c 64 20 62 65 | 20 75 6e 69 71 75 65 20 |hould be| unique |
|00003350| 65 6e 6f 75 67 68 20 74 | 68 61 74 20 6f 6e 6c 79 |enough t|hat only|
|00003360| 20 6d 79 20 63 75 73 74 | 6f 6d 20 4d 44 45 46 73 | my cust|om MDEFs|
|00003370| 20 62 65 68 61 76 65 20 | 74 68 69 73 20 77 61 79 | behave |this way|
|00003380| 2e 7d 0d 09 7b 78 7d 0d | 09 7b 78 78 78 78 78 78 |.}..{x}.|.{xxxxxx|
|00003390| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000033a0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000033b0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000033c0| 78 78 78 78 78 78 78 78 | 78 78 78 78 78 78 78 78 |xxxxxxxx|xxxxxxxx|
|000033d0| 78 78 78 78 78 7d 0d 09 | 09 56 41 52 0d 09 09 09 |xxxxx}..|.VAR....|
|000033e0| 73 74 61 74 65 3a 20 53 | 69 67 6e 65 64 42 79 74 |state: S|ignedByt|
|000033f0| 65 3b 0d 09 09 09 70 72 | 6f 63 3a 20 48 61 6e 64 |e;....pr|oc: Hand|
|00003400| 6c 65 3b 0d 09 09 09 64 | 75 6d 6d 79 3a 20 52 65 |le;....d|ummy: Re|
|00003410| 63 74 3b 0d 09 09 09 64 | 75 6d 6d 79 49 6e 74 3a |ct;....d|ummyInt:|
|00003420| 20 69 6e 74 65 67 65 72 | 3b 0d 09 09 09 68 52 65 | integer|;....hRe|
|00003430| 73 3a 20 48 61 6e 64 6c | 65 3b 0d 09 42 45 47 49 |s: Handl|e;..BEGI|
|00003440| 4e 0d 09 09 70 72 6f 63 | 20 3a 3d 20 6d 65 6e 75 |N...proc| := menu|
|00003450| 5e 5e 2e 6d 65 6e 75 50 | 72 6f 63 3b 0d 09 09 68 |^^.menuP|roc;...h|
|00003460| 52 65 73 20 3a 3d 20 47 | 65 74 52 65 73 6f 75 72 |Res := G|etResour|
|00003470| 63 65 28 27 4d 44 45 46 | 27 2c 20 30 29 3b 0d 09 |ce('MDEF|', 0);..|
|00003480| 09 49 46 20 68 52 65 73 | 5e 20 3d 20 70 72 6f 63 |.IF hRes|^ = proc|
|00003490| 5e 20 54 48 45 4e 0d 09 | 09 09 4d 44 45 46 5f 49 |^ THEN..|..MDEF_I|
|000034a0| 73 43 75 73 74 6f 6d 20 | 3a 3d 20 66 61 6c 73 65 |sCustom |:= false|
|000034b0| 0d 09 09 45 4c 53 45 0d | 09 09 09 42 45 47 49 4e |...ELSE.|...BEGIN|
|000034c0| 0d 09 09 09 09 73 74 61 | 74 65 20 3a 3d 20 48 47 |.....sta|te := HG|
|000034d0| 65 74 53 74 61 74 65 28 | 70 72 6f 63 29 3b 0d 09 |etState(|proc);..|
|000034e0| 09 09 09 48 4c 6f 63 6b | 28 70 72 6f 63 29 3b 0d |...HLock|(proc);.|
|000034f0| 09 09 09 09 64 75 6d 6d | 79 2e 74 6f 70 4c 65 66 |....dumm|y.topLef|
|00003500| 74 20 3a 3d 20 50 6f 69 | 6e 74 28 6c 6f 6e 67 69 |t := Poi|nt(longi|
|00003510| 6e 74 28 30 29 29 3b 0d | 09 09 09 09 43 61 6c 6c |nt(0));.|....Call|
|00003520| 4d 44 45 46 28 61 72 65 | 59 6f 75 43 75 73 74 6f |MDEF(are|YouCusto|
|00003530| 6d 4d 73 67 2c 20 6d 65 | 6e 75 2c 20 64 75 6d 6d |mMsg, me|nu, dumm|
|00003540| 79 2c 20 50 6f 69 6e 74 | 28 6c 6f 6e 67 69 6e 74 |y, Point|(longint|
|00003550| 28 30 29 29 2c 20 64 75 | 6d 6d 79 49 6e 74 2c 20 |(0)), du|mmyInt, |
|00003560| 70 72 6f 63 5e 29 3b 0d | 09 09 09 09 48 53 65 74 |proc^);.|....HSet|
|00003570| 53 74 61 74 65 28 70 72 | 6f 63 2c 20 73 74 61 74 |State(pr|oc, stat|
|00003580| 65 29 3b 0d 09 09 09 09 | 4d 44 45 46 5f 49 73 43 |e);.....|MDEF_IsC|
|00003590| 75 73 74 6f 6d 20 3a 3d | 20 6c 6f 6e 67 69 6e 74 |ustom :=| longint|
|000035a0| 28 64 75 6d 6d 79 2e 74 | 6f 70 4c 65 66 74 29 20 |(dummy.t|opLeft) |
|000035b0| 3d 20 6c 6f 6e 67 69 6e | 74 28 63 75 73 74 6f 6d |= longin|t(custom|
|000035c0| 44 65 66 50 72 6f 63 53 | 69 67 29 3b 0d 09 09 09 |DefProcS|ig);....|
|000035d0| 45 4e 44 3b 0d 09 45 4e | 44 3b 0d 0d 0d 09 46 55 |END;..EN|D;....FU|
|000035e0| 4e 43 54 49 4f 4e 20 4d | 44 45 46 5f 47 65 74 56 |NCTION M|DEF_GetV|
|000035f0| 65 72 73 69 6f 6e 20 28 | 6d 65 6e 75 3a 20 4d 65 |ersion (|menu: Me|
|00003600| 6e 75 48 61 6e 64 6c 65 | 29 3a 20 6c 6f 6e 67 69 |nuHandle|): longi|
|00003610| 6e 74 3b 0d 09 09 56 41 | 52 0d 09 09 09 73 74 61 |nt;...VA|R....sta|
|00003620| 74 65 3a 20 53 69 67 6e | 65 64 42 79 74 65 3b 0d |te: Sign|edByte;.|
|00003630| 09 09 09 70 72 6f 63 3a | 20 48 61 6e 64 6c 65 3b |...proc:| Handle;|
|00003640| 0d 09 09 09 64 75 6d 6d | 79 3a 20 52 65 63 74 3b |....dumm|y: Rect;|
|00003650| 0d 09 09 09 64 75 6d 6d | 79 49 6e 74 3a 20 69 6e |....dumm|yInt: in|
|00003660| 74 65 67 65 72 3b 0d 09 | 42 45 47 49 4e 0d 09 09 |teger;..|BEGIN...|
|00003670| 70 72 6f 63 20 3a 3d 20 | 6d 65 6e 75 5e 5e 2e 6d |proc := |menu^^.m|
|00003680| 65 6e 75 50 72 6f 63 3b | 0d 09 09 73 74 61 74 65 |enuProc;|...state|
|00003690| 20 3a 3d 20 48 47 65 74 | 53 74 61 74 65 28 70 72 | := HGet|State(pr|
|000036a0| 6f 63 29 3b 0d 09 09 48 | 4c 6f 63 6b 28 70 72 6f |oc);...H|Lock(pro|
|000036b0| 63 29 3b 0d 09 09 64 75 | 6d 6d 79 2e 74 6f 70 4c |c);...du|mmy.topL|
|000036c0| 65 66 74 20 3a 3d 20 50 | 6f 69 6e 74 28 6c 6f 6e |eft := P|oint(lon|
|000036d0| 67 69 6e 74 28 30 29 29 | 3b 0d 09 09 43 61 6c 6c |gint(0))|;...Call|
|000036e0| 4d 44 45 46 28 67 65 74 | 56 65 72 73 69 6f 6e 4d |MDEF(get|VersionM|
|000036f0| 73 67 2c 20 6d 65 6e 75 | 2c 20 64 75 6d 6d 79 2c |sg, menu|, dummy,|
|00003700| 20 50 6f 69 6e 74 28 6c | 6f 6e 67 69 6e 74 28 30 | Point(l|ongint(0|
|00003710| 29 29 2c 20 64 75 6d 6d | 79 49 6e 74 2c 20 70 72 |)), dumm|yInt, pr|
|00003720| 6f 63 5e 29 3b 0d 09 09 | 48 53 65 74 53 74 61 74 |oc^);...|HSetStat|
|00003730| 65 28 70 72 6f 63 2c 20 | 73 74 61 74 65 29 3b 0d |e(proc, |state);.|
|00003740| 09 09 4d 44 45 46 5f 47 | 65 74 56 65 72 73 69 6f |..MDEF_G|etVersio|
|00003750| 6e 20 3a 3d 20 6c 6f 6e | 67 69 6e 74 28 64 75 6d |n := lon|gint(dum|
|00003760| 6d 79 2e 74 6f 70 4c 65 | 66 74 29 3b 0d 09 45 4e |my.topLe|ft);..EN|
|00003770| 44 3b 0d 0d 09 46 55 4e | 43 54 49 4f 4e 20 4d 44 |D;...FUN|CTION MD|
|00003780| 45 46 5f 47 65 74 43 6f | 70 79 72 69 67 68 74 20 |EF_GetCo|pyright |
|00003790| 28 6d 65 6e 75 3a 20 4d | 65 6e 75 48 61 6e 64 6c |(menu: M|enuHandl|
|000037a0| 65 29 3a 20 53 74 72 32 | 35 35 3b 0d 09 09 56 41 |e): Str2|55;...VA|
|000037b0| 52 0d 09 09 09 73 74 61 | 74 65 3a 20 53 69 67 6e |R....sta|te: Sign|
|000037c0| 65 64 42 79 74 65 3b 0d | 09 09 09 70 72 6f 63 3a |edByte;.|...proc:|
|000037d0| 20 48 61 6e 64 6c 65 3b | 0d 09 09 09 64 75 6d 6d | Handle;|....dumm|
|000037e0| 79 3a 20 52 65 63 74 3b | 0d 09 09 09 64 75 6d 6d |y: Rect;|....dumm|
|000037f0| 79 49 6e 74 3a 20 69 6e | 74 65 67 65 72 3b 0d 09 |yInt: in|teger;..|
|00003800| 09 09 68 43 6f 70 79 72 | 69 67 68 74 3a 20 53 74 |..hCopyr|ight: St|
|00003810| 72 69 6e 67 48 61 6e 64 | 6c 65 3b 0d 09 09 09 73 |ringHand|le;....s|
|00003820| 20 3a 20 53 74 72 32 35 | 35 3b 0d 09 42 45 47 49 | : Str25|5;..BEGI|
|00003830| 4e 0d 09 09 73 20 3a 3d | 20 27 27 3b 0d 09 09 70 |N...s :=| '';...p|
|00003840| 72 6f 63 20 3a 3d 20 6d | 65 6e 75 5e 5e 2e 6d 65 |roc := m|enu^^.me|
|00003850| 6e 75 50 72 6f 63 3b 0d | 09 09 73 74 61 74 65 20 |nuProc;.|..state |
|00003860| 3a 3d 20 48 47 65 74 53 | 74 61 74 65 28 70 72 6f |:= HGetS|tate(pro|
|00003870| 63 29 3b 0d 09 09 48 4c | 6f 63 6b 28 70 72 6f 63 |c);...HL|ock(proc|
|00003880| 29 3b 0d 09 09 64 75 6d | 6d 79 2e 74 6f 70 4c 65 |);...dum|my.topLe|
|00003890| 66 74 20 3a 3d 20 50 6f | 69 6e 74 28 6c 6f 6e 67 |ft := Po|int(long|
|000038a0| 69 6e 74 28 30 29 29 3b | 0d 09 09 43 61 6c 6c 4d |int(0));|...CallM|
|000038b0| 44 45 46 28 67 65 74 43 | 6f 70 79 72 69 67 68 74 |DEF(getC|opyright|
|000038c0| 4d 73 67 2c 20 6d 65 6e | 75 2c 20 64 75 6d 6d 79 |Msg, men|u, dummy|
|000038d0| 2c 20 50 6f 69 6e 74 28 | 6c 6f 6e 67 69 6e 74 28 |, Point(|longint(|
|000038e0| 30 29 29 2c 20 64 75 6d | 6d 79 49 6e 74 2c 20 70 |0)), dum|myInt, p|
|000038f0| 72 6f 63 5e 29 3b 0d 09 | 09 48 53 65 74 53 74 61 |roc^);..|.HSetSta|
|00003900| 74 65 28 70 72 6f 63 2c | 20 73 74 61 74 65 29 3b |te(proc,| state);|
|00003910| 0d 09 09 68 43 6f 70 79 | 72 69 67 68 74 20 3a 3d |...hCopy|right :=|
|00003920| 20 53 74 72 69 6e 67 48 | 61 6e 64 6c 65 28 64 75 | StringH|andle(du|
|00003930| 6d 6d 79 2e 74 6f 70 4c | 65 66 74 29 3b 0d 09 09 |mmy.topL|eft);...|
|00003940| 49 46 20 68 43 6f 70 79 | 72 69 67 68 74 20 3c 3e |IF hCopy|right <>|
|00003950| 20 4e 49 4c 20 54 48 45 | 4e 0d 09 09 09 73 20 3a | NIL THE|N....s :|
|00003960| 3d 20 68 43 6f 70 79 72 | 69 67 68 74 5e 5e 3b 0d |= hCopyr|ight^^;.|
|00003970| 09 09 44 69 73 70 6f 73 | 65 48 61 6e 64 6c 65 28 |..Dispos|eHandle(|
|00003980| 48 61 6e 64 6c 65 28 68 | 43 6f 70 79 72 69 67 68 |Handle(h|Copyrigh|
|00003990| 74 29 29 3b 0d 09 09 4d | 44 45 46 5f 47 65 74 43 |t));...M|DEF_GetC|
|000039a0| 6f 70 79 72 69 67 68 74 | 20 3a 3d 20 73 3b 0d 09 |opyright| := s;..|
|000039b0| 45 4e 44 3b 0d 0d 0d 0d | 09 46 55 4e 43 54 49 4f |END;....|.FUNCTIO|
|000039c0| 4e 20 4d 44 45 46 5f 4d | 65 6e 75 4b 65 79 20 28 |N MDEF_M|enuKey (|
|000039d0| 74 68 65 4d 65 73 73 61 | 67 65 3a 20 6c 6f 6e 67 |theMessa|ge: long|
|000039e0| 69 6e 74 3b 20 74 68 65 | 4d 6f 64 69 66 69 65 72 |int; the|Modifier|
|000039f0| 73 3a 20 69 6e 74 65 67 | 65 72 3b 20 68 4d 65 6e |s: integ|er; hMen|
|00003a00| 75 3a 20 4d 65 6e 75 48 | 61 6e 64 6c 65 29 20 3a |u: MenuH|andle) :|
|00003a10| 20 6c 6f 6e 67 69 6e 74 | 3b 0d 09 09 56 41 52 0d | longint|;...VAR.|
|00003a20| 09 09 09 73 74 61 74 65 | 3a 20 53 69 67 6e 65 64 |...state|: Signed|
|00003a30| 42 79 74 65 3b 0d 09 09 | 09 70 72 6f 63 3a 20 48 |Byte;...|.proc: H|
|00003a40| 61 6e 64 6c 65 3b 0d 09 | 09 09 64 75 6d 6d 79 52 |andle;..|..dummyR|
|00003a50| 65 63 74 3a 20 52 65 63 | 74 3b 0d 09 09 09 64 75 |ect: Rec|t;....du|
|00003a60| 6d 6d 79 49 6e 74 3a 20 | 69 6e 74 65 67 65 72 3b |mmyInt: |integer;|
|00003a70| 0d 09 42 45 47 49 4e 0d | 09 09 49 46 20 28 28 68 |..BEGIN.|..IF ((h|
|00003a80| 4d 65 6e 75 20 3d 20 4e | 49 4c 29 20 7c 20 28 4e |Menu = N|IL) | (N|
|00003a90| 4f 54 20 4d 44 45 46 5f | 49 73 43 75 73 74 6f 6d |OT MDEF_|IsCustom|
|00003aa0| 28 68 4d 65 6e 75 29 29 | 29 20 54 48 45 4e 0d 09 |(hMenu))|) THEN..|
|00003ab0| 09 09 4d 44 45 46 5f 4d | 65 6e 75 4b 65 79 20 3a |..MDEF_M|enuKey :|
|00003ac0| 3d 20 4d 65 6e 75 4b 65 | 79 28 63 68 61 72 28 42 |= MenuKe|y(char(B|
|00003ad0| 69 74 41 6e 64 28 74 68 | 65 4d 65 73 73 61 67 65 |itAnd(th|eMessage|
|00003ae0| 2c 20 63 68 61 72 43 6f | 64 65 4d 61 73 6b 29 29 |, charCo|deMask))|
|00003af0| 29 0d 09 09 45 4c 53 45 | 0d 09 09 09 42 45 47 49 |)...ELSE|....BEGI|
|00003b00| 4e 0d 09 09 09 09 70 72 | 6f 63 20 3a 3d 20 68 4d |N.....pr|oc := hM|
|00003b10| 65 6e 75 5e 5e 2e 6d 65 | 6e 75 50 72 6f 63 3b 0d |enu^^.me|nuProc;.|
|00003b20| 09 09 09 09 73 74 61 74 | 65 20 3a 3d 20 48 47 65 |....stat|e := HGe|
|00003b30| 74 53 74 61 74 65 28 70 | 72 6f 63 29 3b 0d 09 09 |tState(p|roc);...|
|00003b40| 09 09 48 4c 6f 63 6b 28 | 70 72 6f 63 29 3b 0d 09 |..HLock(|proc);..|
|00003b50| 09 09 09 64 75 6d 6d 79 | 52 65 63 74 2e 74 6f 70 |...dummy|Rect.top|
|00003b60| 4c 65 66 74 20 3a 3d 20 | 50 6f 69 6e 74 28 6c 6f |Left := |Point(lo|
|00003b70| 6e 67 69 6e 74 28 30 29 | 29 3b 0d 09 09 09 09 43 |ngint(0)|);.....C|
|00003b80| 61 6c 6c 4d 44 45 46 28 | 6d 4d 65 6e 75 4b 65 79 |allMDEF(|mMenuKey|
|00003b90| 4d 73 67 2c 20 68 4d 65 | 6e 75 2c 20 64 75 6d 6d |Msg, hMe|nu, dumm|
|00003ba0| 79 52 65 63 74 2c 20 50 | 6f 69 6e 74 28 74 68 65 |yRect, P|oint(the|
|00003bb0| 4d 65 73 73 61 67 65 29 | 2c 20 74 68 65 4d 6f 64 |Message)|, theMod|
|00003bc0| 69 66 69 65 72 73 2c 20 | 70 72 6f 63 5e 29 3b 0d |ifiers, |proc^);.|
|00003bd0| 09 09 09 09 48 53 65 74 | 53 74 61 74 65 28 70 72 |....HSet|State(pr|
|00003be0| 6f 63 2c 20 73 74 61 74 | 65 29 3b 0d 09 09 09 09 |oc, stat|e);.....|
|00003bf0| 4d 44 45 46 5f 4d 65 6e | 75 4b 65 79 20 3a 3d 20 |MDEF_Men|uKey := |
|00003c00| 6c 6f 6e 67 69 6e 74 28 | 64 75 6d 6d 79 52 65 63 |longint(|dummyRec|
|00003c10| 74 2e 74 6f 70 4c 65 66 | 74 29 3b 0d 09 09 09 45 |t.topLef|t);....E|
|00003c20| 4e 44 3b 0d 09 45 4e 44 | 3b 0d 0d 0d 7b 24 41 4c |ND;..END|;...{$AL|
|00003c30| 49 47 4e 20 52 45 53 45 | 54 7d 0d 0d 0d 7b 20 56 |IGN RESE|T}...{ V|
|00003c40| 45 52 53 49 4f 4e 20 48 | 49 53 54 4f 52 59 20 7d |ERSION H|ISTORY }|
|00003c50| 0d 7b 31 2e 32 2e 31 7d | 0d 7b 3d 3d 3d 3d 3d 7d |.{1.2.1}|.{=====}|
|00003c60| 0d 7b 20 2d 20 46 69 78 | 65 64 20 63 6f 6d 6d 65 |.{ - Fix|ed comme|
|00003c70| 6e 74 73 20 28 72 65 6d | 6f 76 65 64 20 50 6f 77 |nts (rem|oved Pow|
|00003c80| 65 72 4d 65 6e 75 4b 65 | 79 20 72 65 66 65 72 65 |erMenuKe|y refere|
|00003c90| 6e 63 65 73 29 7d 0d 7b | 20 2d 20 52 65 6d 6f 76 |nces)}.{| - Remov|
|00003ca0| 65 64 20 73 70 61 63 65 | 73 20 66 72 6f 6d 20 66 |ed space|s from f|
|00003cb0| 69 6c 65 6e 61 6d 65 73 | 20 66 6f 72 20 4d 65 74 |ilenames| for Met|
|00003cc0| 72 6f 57 65 72 6b 73 20 | 63 6f 6d 70 61 74 69 62 |roWerks |compatib|
|00003cd0| 69 6c 69 74 79 7d 0d 7b | 20 2d 20 4d 65 72 63 75 |ility}.{| - Mercu|
|00003ce0| 74 69 6f 20 6e 6f 77 20 | 63 6f 72 72 65 63 74 6c |tio now |correctl|
|00003cf0| 79 20 64 65 61 6c 73 20 | 77 69 74 68 20 76 61 72 |y deals |with var|
|00003d00| 69 61 62 6c 65 20 73 69 | 7a 65 64 20 63 69 63 6e |iable si|zed cicn|
|00003d10| 73 7d 0d 0d 7b 31 2e 32 | 62 32 37 7d 0d 7b 3d 3d |s}..{1.2|b27}.{==|
|00003d20| 3d 3d 3d 7d 0d 7b 20 2d | 20 4d 44 45 46 20 72 65 |===}.{ -| MDEF re|
|00003d30| 63 6f 67 6e 69 7a 65 64 | 20 62 79 20 49 44 20 28 |cognized| by ID (|
|00003d40| 31 39 39 39 39 29 20 72 | 61 74 68 65 72 20 74 68 |19999) r|ather th|
|00003d50| 61 6e 20 62 79 20 72 65 | 73 6f 75 72 63 65 20 6e |an by re|source n|
|00003d60| 61 6d 65 7d 0d 7b 20 2d | 20 43 6f 6c 6f 72 20 69 |ame}.{ -| Color i|
|00003d70| 63 6f 6e 73 20 6e 6f 77 | 20 64 72 61 77 6e 20 75 |cons now| drawn u|
|00003d80| 6e 68 69 6c 69 74 65 64 | 20 77 68 65 6e 20 69 74 |nhilited| when it|
|00003d90| 65 6d 20 69 73 20 68 69 | 6c 69 74 65 64 20 28 6d |em is hi|lited (m|
|00003da0| 61 74 63 68 65 73 20 41 | 70 70 6c 65 20 6d 65 6e |atches A|pple men|
|00003db0| 75 20 62 65 68 61 76 69 | 6f 72 29 7d 0d 7b 20 2d |u behavi|or)}.{ -|
|00003dc0| 20 46 69 78 65 64 20 6f | 70 74 69 6f 6e 20 63 68 | Fixed o|ption ch|
|00003dd0| 61 72 61 63 74 65 72 20 | 69 6e 20 66 6f 6e 74 20 |aracter |in font |
|00003de0| 28 73 68 6f 75 6c 64 20 | 62 65 20 5e 2c 20 6e 6f |(should |be ^, no|
|00003df0| 74 20 2d 5e 2d 29 7d 0d | 7b 20 2d 20 4b 4e 4f 57 |t -^-)}.|{ - KNOW|
|00003e00| 4e 20 42 55 47 3a 20 64 | 6f 65 73 6e 27 74 20 72 |N BUG: d|oesn't r|
|00003e10| 65 61 63 74 20 74 6f 20 | 47 72 61 66 50 6f 72 74 |eact to |GrafPort|
|00003e20| 20 66 6f 6e 74 20 69 6e | 66 6f 20 28 65 2e 67 2e | font in|fo (e.g.|
|00003e30| 20 66 6f 72 20 6d 61 6b | 69 6e 67 20 39 20 70 74 | for mak|ing 9 pt|
|00003e40| 20 47 65 6e 65 76 61 20 | 70 6f 70 75 70 20 6d 65 | Geneva |popup me|
|00003e50| 6e 75 73 29 7d 0d 0d 0d | 7b 31 2e 32 62 32 36 7d |nus)}...|{1.2b26}|
|00003e60| 0d 7b 3d 3d 3d 3d 3d 7d | 0d 7b 20 2d 20 46 69 78 |.{=====}|.{ - Fix|
|00003e70| 65 64 20 73 63 72 6f 6c | 6c 20 62 75 67 20 74 68 |ed scrol|l bug th|
|00003e80| 61 74 20 77 6f 75 6c 64 | 6e 27 74 20 68 69 6c 69 |at would|n't hili|
|00003e90| 67 68 74 20 74 68 65 20 | 6c 61 73 74 20 69 74 65 |ght the |last ite|
|00003ea0| 6d 20 69 6e 20 61 20 6d | 65 6e 75 20 61 66 74 65 |m in a m|enu afte|
|00003eb0| 72 20 73 63 72 6f 6c 6c | 69 6e 67 20 64 6f 77 6e |r scroll|ing down|
|00003ec0| 7d 0d 7b 20 2d 20 4d 69 | 73 63 2e 20 63 6f 64 65 |}.{ - Mi|sc. code|
|00003ed0| 20 63 6c 65 61 6e 69 6e | 67 7d 0d 7b 20 2d 20 41 | cleanin|g}.{ - A|
|00003ee0| 64 64 65 64 20 27 58 6d | 6e 75 27 20 6d 65 6e 75 |dded 'Xm|nu' menu|
|00003ef0| 20 74 6f 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 | to demo|nstrate |
|00003f00| 70 72 65 66 65 72 65 6e | 63 65 20 72 65 73 6f 75 |preferen|ce resou|
|00003f10| 72 63 65 7d 0d 7b 20 2d | 20 52 65 6d 6f 76 65 64 |rce}.{ -| Removed|
|00003f20| 20 66 6c 69 63 6b 65 72 | 20 69 6e 20 64 79 6e 61 | flicker| in dyna|
|00003f30| 6d 69 63 20 69 74 65 6d | 73 20 77 68 65 6e 20 74 |mic item|s when t|
|00003f40| 68 65 79 20 64 6f 6e 27 | 74 20 63 68 61 6e 67 65 |hey don'|t change|
|00003f50| 7d 0d 0d 0d 7b 31 2e 32 | 62 32 34 7d 0d 7b 3d 3d |}...{1.2|b24}.{==|
|00003f60| 3d 3d 3d 7d 0d 7b 20 2d | 20 44 76 6f 72 61 6b 20 |===}.{ -| Dvorak |
|00003f70| 6b 65 79 62 6f 61 72 64 | 20 73 75 70 70 6f 72 74 |keyboard| support|
|00003f80| 7d 0d 7b 20 2d 20 46 69 | 78 65 64 20 42 61 6c 6c |}.{ - Fi|xed Ball|
|00003f90| 6f 6f 6e 20 68 65 6c 70 | 20 66 6c 69 63 6b 65 72 |oon help| flicker|
|00003fa0| 69 6e 67 7d 0d 7b 20 2d | 20 41 64 64 65 64 20 63 |ing}.{ -| Added c|
|00003fb0| 62 47 65 74 4c 6f 6e 67 | 65 73 74 49 74 65 6d 4d |bGetLong|estItemM|
|00003fc0| 73 67 20 6d 65 73 73 61 | 67 65 20 74 6f 20 63 61 |sg messa|ge to ca|
|00003fd0| 6c 6c 62 61 63 6b 7d 0d | 7b 20 2d 20 4d 69 73 63 |llback}.|{ - Misc|
|00003fe0| 20 62 75 67 20 66 69 78 | 65 73 20 61 6e 64 20 63 | bug fix|es and c|
|00003ff0| 6f 64 65 20 63 6c 65 61 | 6e 75 70 73 7d 0d 0d 0d |ode clea|nups}...|
|00004000| 7b 31 2e 32 62 32 31 7d | 0d 7b 3d 3d 3d 3d 3d 7d |{1.2b21}|.{=====}|
|00004010| 0d 7b 20 2d 20 58 6d 6e | 75 20 69 64 20 30 20 61 |.{ - Xmn|u id 0 a|
|00004020| 73 20 61 20 64 65 66 61 | 75 6c 74 73 20 66 6f 72 |s a defa|ults for|
|00004030| 20 61 6c 6c 20 74 68 65 | 20 6d 65 6e 75 73 7d 0d | all the| menus}.|
|00004040| 0d 7b 31 2e 32 62 31 36 | 7d 0d 7b 3d 3d 3d 3d 3d |.{1.2b16|}.{=====|
|00004050| 7d 0d 7b 20 2d 20 66 69 | 78 65 64 20 63 6f 6c 6f |}.{ - fi|xed colo|
|00004060| 72 20 6d 65 6e 75 20 62 | 75 67 20 28 64 72 65 77 |r menu b|ug (drew|
|00004070| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 69 6e 20 77 | backgro|und in w|
|00004080| 68 69 74 65 29 7d 0d 7b | 20 2d 20 63 68 61 6e 67 |hite)}.{| - chang|
|00004090| 65 20 63 61 6c 6c 62 61 | 63 6b 20 70 72 6f 63 65 |e callba|ck proce|
|000040a0| 64 75 72 65 20 74 6f 20 | 61 63 63 65 70 74 20 61 |dure to |accept a|
|000040b0| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|000040c0| 20 77 69 74 68 20 63 62 | 4d 73 67 20 6d 65 73 73 | with cb|Msg mess|
|000040d0| 61 67 65 7d 0d 7b 20 2d | 20 63 61 6c 6c 62 61 63 |age}.{ -| callbac|
|000040e0| 6b 20 63 61 6c 6c 65 64 | 20 74 77 69 63 65 3a 20 |k called| twice: |
|000040f0| 6f 6e 63 65 20 66 6f 72 | 20 69 74 65 6d 20 64 61 |once for| item da|
|00004100| 74 61 2c 20 6f 6e 63 65 | 20 66 6f 72 20 69 63 6f |ta, once| for ico|
|00004110| 6e 20 64 61 74 61 7d 0d | 7b 20 2d 20 72 65 6e 61 |n data}.|{ - rena|
|00004120| 6d 65 64 20 41 50 49 20 | 66 6f 72 20 63 6f 6e 73 |med API |for cons|
|00004130| 69 73 74 65 6e 63 79 20 | 28 61 6c 6c 20 72 6f 75 |istency |(all rou|
|00004140| 74 69 6e 65 73 20 73 74 | 61 72 74 20 77 69 74 68 |tines st|art with|
|00004150| 20 4d 44 45 46 5f 20 29 | 7d 0d 7b 20 2d 20 50 6f | MDEF_ )|}.{ - Po|
|00004160| 77 65 72 4d 65 6e 75 4b | 65 79 20 72 65 6e 61 6d |werMenuK|ey renam|
|00004170| 65 64 20 4d 44 45 46 5f | 4d 65 6e 75 4b 65 79 7d |ed MDEF_|MenuKey}|
|00004180| 0d 7b 7d 0d 0d 7b 31 2e | 32 62 31 32 7d 0d 7b 3d |.{}..{1.|2b12}.{=|
|00004190| 3d 3d 3d 3d 7d 0d 7b 20 | 2d 20 69 6e 74 65 67 72 |====}.{ |- integr|
|000041a0| 61 74 65 64 20 61 6c 6c | 20 4d 44 45 46 73 20 62 |ated all| MDEFs b|
|000041b0| 61 63 6b 20 69 6e 74 6f | 20 4d 65 72 63 75 74 69 |ack into| Mercuti|
|000041c0| 6f 7d 0d 7b 20 2d 20 69 | 6e 74 72 6f 64 75 63 65 |o}.{ - i|ntroduce|
|000041d0| 64 20 4d 65 6e 75 20 70 | 72 65 66 65 72 65 6e 63 |d Menu p|referenc|
|000041e0| 65 73 20 66 6f 72 20 73 | 65 74 74 69 6e 67 20 73 |es for s|etting s|
|000041f0| 74 79 6c 65 20 62 69 74 | 20 6d 61 70 70 69 6e 67 |tyle bit| mapping|
|00004200| 20 61 6e 64 20 72 65 71 | 75 69 72 65 64 20 6d 6f | and req|uired mo|
|00004210| 64 69 66 69 65 72 20 6b | 65 79 73 7d 0d 7b 20 2d |difier k|eys}.{ -|
|00004220| 20 6e 65 77 20 27 64 69 | 72 74 79 27 20 70 61 72 | new 'di|rty' par|
|00004230| 61 6d 65 74 65 72 20 74 | 6f 20 43 61 6c 6c 62 61 |ameter t|o Callba|
|00004240| 63 6b 20 61 76 6f 69 64 | 73 20 75 6e 6e 65 63 65 |ck avoid|s unnece|
|00004250| 73 73 61 72 79 20 66 6c | 69 63 6b 65 72 20 7d 0d |ssary fl|icker }.|
|00004260| 7b 20 2d 20 6d 6f 64 69 | 66 65 72 20 70 61 72 61 |{ - modi|fer para|
|00004270| 6d 65 74 65 72 20 69 6e | 20 43 61 6c 6c 62 61 63 |meter in| Callbac|
|00004280| 6b 20 63 68 61 6e 67 65 | 64 20 74 6f 20 53 74 61 |k change|d to Sta|
|00004290| 74 75 73 20 74 6f 20 61 | 6c 6c 6f 77 20 69 6e 66 |tus to a|llow inf|
|000042a0| 6f 72 6d 61 74 69 6f 6e | 20 74 6f 20 70 65 72 73 |ormation| to pers|
|000042b0| 69 73 74 20 61 63 72 6f | 73 73 20 63 61 6c 6c 73 |ist acro|ss calls|
|000042c0| 20 7d 0d 7b 7d 0d 0d 0d | 7b 4f 6c 64 65 72 20 76 | }.{}...|{Older v|
|000042d0| 65 72 73 69 6f 6e 73 7d | 0d 7b 3d 3d 3d 3d 3d 3d |ersions}|.{======|
|000042e0| 3d 3d 3d 3d 3d 3d 3d 3d | 7d 0d 7b 31 31 2f 31 33 |========|}.{11/13|
|000042f0| 2f 39 32 09 31 2e 31 2e | 31 09 46 69 78 65 64 20 |/92.1.1.|1.Fixed |
|00004300| 6b 65 79 54 72 61 6e 73 | 20 62 75 67 20 28 77 2e |keyTrans| bug (w.|
|00004310| 20 44 76 6f 72 61 6b 20 | 6b 65 79 62 6f 61 72 64 | Dvorak |keyboard|
|00004320| 29 7d 0d 7b 31 2e 31 2e | 32 09 42 75 69 6c 74 20 |)}.{1.1.|2.Built |
|00004330| 43 20 41 50 49 2c 20 77 | 6f 72 6b 73 20 77 69 74 |C API, w|orks wit|
|00004340| 68 20 6f 6e 2d 74 68 65 | 2d 66 6c 79 20 6d 65 6e |h on-the|-fly men|
|00004350| 75 73 7d 0d 7b 31 2e 31 | 2e 33 09 41 64 64 65 64 |us}.{1.1|.3.Added|
|00004360| 20 43 6f 70 79 72 69 67 | 68 74 20 73 75 70 70 6f | Copyrig|ht suppo|
|00004370| 72 74 7d 0d 7b 31 2e 31 | 2e 34 09 46 69 78 65 64 |rt}.{1.1|.4.Fixed|
|00004380| 20 70 6f 70 75 70 20 62 | 75 67 2c 20 77 6f 72 6b | popup b|ug, work|
|00004390| 73 20 77 69 74 68 20 47 | 72 65 67 27 73 20 62 75 |s with G|reg's bu|
|000043a0| 74 74 6f 6e 73 7d 0d 7b | 31 2e 31 2e 35 09 46 69 |ttons}.{|1.1.5.Fi|
|000043b0| 78 65 64 20 62 75 67 20 | 77 69 74 68 20 27 65 6d |xed bug |with 'em|
|000043c0| 70 74 79 27 20 6d 63 74 | 62 73 3b 20 72 65 6d 6f |pty' mct|bs; remo|
|000043d0| 76 65 64 20 64 65 62 75 | 67 67 69 6e 67 20 63 6f |ved debu|gging co|
|000043e0| 64 65 20 28 61 6c 74 65 | 72 6e 61 74 65 20 77 61 |de (alte|rnate wa|
|000043f0| 79 20 74 6f 20 73 68 6f | 77 20 64 69 73 61 62 6c |y to sho|w disabl|
|00004400| 65 64 20 6d 6f 64 69 66 | 69 65 72 73 29 7d 0d 7b |ed modif|iers)}.{|
|00004410| 32 2f 32 31 2f 39 33 09 | 31 2e 32 09 41 64 64 65 |2/21/93.|1.2.Adde|
|00004420| 64 20 69 63 6f 6e 20 73 | 75 69 74 65 20 73 75 70 |d icon s|uite sup|
|00004430| 70 6f 72 74 3b 20 72 65 | 6e 75 6d 62 65 72 65 64 |port; re|numbered|
|00004440| 20 4d 44 45 46 20 66 6f | 6e 74 20 74 6f 20 72 65 | MDEF fo|nt to re|
|00004450| 73 6f 6c 76 65 20 63 6f | 6e 66 6c 69 63 74 20 77 |solve co|nflict w|
|00004460| 69 74 68 20 47 65 6e 65 | 76 61 7d 0d 0d 45 4e 44 |ith Gene|va}..END|
|00004470| 2e 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004480| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00004490| 03 00 00 00 0a 90 13 00 | 03 00 00 00 05 90 14 00 |........|........|
|000044a0| 03 00 00 00 05 90 15 00 | 03 00 00 00 0a 90 16 00 |........|........|
|000044b0| 0d 4d 65 72 63 75 74 69 | 6f 41 50 49 2e 70 02 00 |.Mercuti|oAPI.p..|
|000044c0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000044d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 ae 76 dd 9c 00 00 | 00 00 00 00 01 9a 20 00 |...v....|...... .|
|00004500| 03 00 00 00 00 90 21 00 | 03 00 00 00 0a 90 22 00 |......!.|......".|
|00004510| 03 00 00 00 0a 90 23 00 | 03 00 00 00 0a 90 24 00 |......#.|......$.|
|00004520| 03 00 00 00 0a 90 25 00 | 03 00 00 00 00 ca b3 00 |......%.|........|
|00004530| 00 00 01 00 02 00 00 00 | 00 00 02 00 02 ff ff 00 |........|........|
|00004540| 00 00 03 00 02 00 01 00 | 00 00 04 00 02 00 00 00 |........|........|
|00004550| 00 00 05 00 02 ff ff 00 | 00 00 06 00 02 00 01 00 |........|........|
|00004560| 00 00 07 00 02 00 00 00 | 00 00 08 00 02 00 01 00 |........|........|
|00004570| 00 00 09 00 02 00 02 00 | 00 00 0a 00 02 00 03 00 |........|........|
|00004580| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 03 | 00 04 00 5e 01 03 02 f2 |........|...^....|
|000045b0| 03 82 00 5e 01 03 02 f2 | 03 82 ae 52 69 aa 00 00 |...^....|...Ri...|
|000045c0| 1e 03 00 00 1e 12 00 00 | 07 97 01 00 00 00 00 04 |........|........|
|000045d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000045e0| 00 00 00 46 02 5d 8b 6c | 3b 20 00 00 00 1c 00 46 |...F.].l|; .....F|
|000045f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00004600| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00004610| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+